Regular polygon
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
The circle of the radius 1000 of (0, 0) has a center.
Display the coordinates of the regular polygon inscribed in this.
First convex is (1000,0).
Give your answer rounded to the nearest integer.
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
3
Sample output:
1000 0
-500 866
-500 -866
Sample input:_
17
Sample output:
1000 0
932 361
739 674
446 895
92 996
-274 962
-603 798
-850 526
-983 184
-983 -184
-850 -526
-603 -798
-274 -962
92 -996
446 -895
739 -674
932 -361
Sample input:_
100
Sample output:
1000 0
998 63
992 125
982 187
969 249
951 309
930 368
905 426
876 482
844 536
809 588
771 637
729 685
685 729
637 771
588 809
536 844
482 876
426 905
368 930
309 951
249 969
187 982
125 992
63 998
0 1000
-63 998
-125 992
-187 982
-249 969
-309 951
-368 930
-426 905
-482 876
-536 844
-588 809
-637 771
-685 729
-729 685
-771 637
-809 588
-844 536
-876 482
-905 426
-930 368
-951 309
-969 249
-982 187
-992 125
-998 63
-1000 0
-998 -63
-992 -125
-982 -187
-969 -249
-951 -309
-930 -368
-905 -426
-876 -482
-844 -536
-809 -588
-771 -637
-729 -685
-685 -729
-637 -771
-588 -809
-536 -844
-482 -876
-426 -905
-368 -930
-309 -951
-249 -969
-187 -982
-125 -992
-63 -998
0 -1000
63 -998
125 -992
187 -982
249 -969
309 -951
368 -930
426 -905
482 -876
536 -844
588 -809
637 -771
685 -729
729 -685
771 -637
809 -588
844 -536
876 -482
905 -426
930 -368
951 -309
969 -249
982 -187
992 -125
998 -63
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 86 | 0.0594 | 2012/06/19 08:13:29 | 0B / 50B / 34B |
2 | leonid | 86 | 0.0739 | 2012/06/23 04:34:08 | 0B / 50B / 33B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 62 | 0.0397 | 2012/06/09 18:24:30 | 0B / 24B / 35B |
2 | nfouille | 88 | 0.0385 | 2012/06/22 19:34:33 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 88 | 0.0830 | 2012/06/15 07:27:15 | 0B / 52B / 33B |
2 | clock | 96 | 0.0833 | 2012/06/19 08:23:34 | 0B / 58B / 33B |
3 | twobit | 97 | 0.0897 | 2012/06/13 19:12:03 | 0B / 57B / 36B |
4 | hallvabo | 105 | 0.0728 | 2012/06/11 16:11:16 | 0B / 67B / 31B |
5 | Defenestrator | 108 | 0.0569 | 2012/06/12 08:25:29 | 0B / 73B / 27B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 111 | 0.3091 | 2012/06/19 05:56:48 | 0B / 78B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | atami | 93 | 0.0650 | 2012/06/22 23:35:16 | 0B / 57B / 36B |
2 | nn | 94 | 0.0729 | 2012/06/10 20:42:04 | 0B / 62B / 32B |
3 | clock | 96 | 0.0725 | 2012/06/10 18:01:17 | 0B / 64B / 32B |
4 | atami(nn) | 85 | 0.0572 | 2012/06/25 20:45:42 | 0B / 54B / 31B |
5 | atami | 91 | 0.1147 | 2012/06/23 10:26:08 | 0B / 55B / 36B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 102 | 0.0569 | 2012/06/19 05:56:14 | 0B / 61B / 40B |
2 | clock | 102 | 0.0837 | 2012/06/19 08:03:39 | 0B / 61B / 40B |
3 | pooq | 132 | 0.0816 | 2012/06/17 21:42:07 | 0B / 81B / 50B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 70 | 0.0753 | 2012/06/22 03:12:12 | 0B / 37B / 31B |
2 | clock | 72 | 0.0510 | 2012/06/19 01:17:26 | 0B / 45B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 105 | 0.1601 | 2012/06/17 19:54:27 | 0B / 61B / 40B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 86 | 0.0392 | 2012/06/22 21:56:39 | 0B / 55B / 26B |
2 | pooq | 95 | 0.0623 | 2012/06/22 18:56:45 | 0B / 55B / 36B |
3 | teebee | 85 | 0.0408 | 2012/06/23 06:10:01 | 0B / 55B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 56 | 0.0470 | 2012/06/09 08:35:50 | 0B / 23B / 32B |
2 | twobit | 58 | 0.0307 | 2012/06/09 08:07:12 | 0B / 21B / 35B |
3 | teebee(twobit) | 46 | 0.0306 | 2012/08/04 07:04:00 | 0B / 22B / 23B |
4 | av(teebee) | 46 | 0.0295 | 2012/08/04 07:29:44 | 0B / 22B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | inaniwa(rand) | 99 | 0.0007 | 2012/06/15 13:14:00 | 2B / 52B / 42B |
2 | nu(rand) | 99 | 0.0218 | 2012/06/15 14:53:08 | 2B / 53B / 41B |
3 | nu | 100 | 0.0468 | 2012/06/14 23:55:07 | 0B / 55B / 42B |
4 | leonid | 100 | 0.0150 | 2012/06/15 08:37:47 | 2B / 53B / 43B |
5 | ush | 100 | 0.0478 | 2012/06/15 08:46:33 | 0B / 55B / 42B |
6 | inaniwa | 100 | 0.0335 | 2012/06/15 10:21:47 | 0B / 55B / 42B |
7 | kou | 100 | 0.0441 | 2012/06/15 16:09:01 | 0B / 56B / 42B |
8 | nn | 102 | 0.0461 | 2012/06/18 01:24:11 | 0B / 58B / 42B |
9 | twobit | 103 | 0.0326 | 2012/06/13 19:09:01 | 0B / 57B / 45B |
10 | fill | 122 | 0.0403 | 2012/06/15 12:45:01 | 0B / 72B / 49B |
11 | nn(kou) | 84 | 0.0348 | 2012/06/25 20:35:30 | 0B / 45B / 38B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | henkma | 93 | 0.0686 | 2012/06/19 06:37:33 | 0B / 61B / 30B |
2 | tanakh | 95 | 0.0468 | 2012/06/21 20:36:10 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 88 | 1.8696 | 2012/06/17 19:49:29 | 0B / 49B / 37B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 92 | 0.0840 | 2012/06/21 01:55:44 | 0B / 57B / 16B |
2 | pooq | 93 | 0.2581 | 2012/06/19 19:17:39 | 0B / 58B / 17B |
3 | clock | 90 | 0.1553 | 2012/06/23 11:43:08 | 0B / 55B / 16B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 90 | 1.5649 | 2012/06/19 17:53:23 | 0B / 56B / 31B |
2 | teebee | 88 | 0.5862 | 2012/06/23 10:59:54 | 0B / 47B / 39B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 100 | 3.7330 | 2012/06/15 09:54:06 | 0B / 63B / 36B |
2 | clock | 100 | 3.7368 | 2012/06/19 01:38:57 | 0B / 63B / 33B |
3 | teebee | 100 | 3.4105 | 2012/06/19 06:18:28 | 0B / 66B / 33B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | J | I., S. | 45 | 10000 |
2 | K | av(teebee) | 46 | 9782 |
3 | Perl | teebee | 62 | 7258 |
4 | Logo | teebee | 66 | 6818 |
5 | PARI/GP | teebee | 70 | 6428 |
6 | AWK | teebee | 71 | 6338 |
7 | C | nn(kou) | 84 | 5357 |
8 | BASIC | teebee | 85 | 5294 |
9 | JavaScript | atami(nn) | 85 | 5294 |
10 | Ruby | clock | 86 | 5232 |
11 | Python | leonid | 88 | 5113 |
12 | Maxima | pooq | 88 | 5113 |
13 | R | teebee | 88 | 5113 |
14 | REBOL | clock | 90 | 5000 |
15 | Haskell | henkma | 93 | 4838 |
16 | Asymptote | teebee | 93 | 4838 |
17 | Groovy | nn | 100 | 4500 |
18 | Xtal | teebee | 102 | 4411 |
19 | Prolog | pooq | 105 | 4285 |
20 | Io | pooq | 111 | 4054 |
21 | Zsh | nfouille | 117 | 3846 |
return to the top page