An afaik unnamed involution
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
f is an involution on positive integers, i.e. f is a function that satisfies
f(f(x)) = x
for any positive integer x.
Please detect f and print the values of f(x) for the first 100 positive integers.
-- tails
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
*NOTHING*
Sample output:
1 : 1
2 : 3
3 : 2
4 : 5
5 : 4
6 : 6
7 : 8
8 : 7
9 : 16
10 : 12
11 : 32
12 : 10
13 : 64
14 : 24
15 : 128
16 : 9
17 : 256
18 : 48
19 : 512
20 : 20
21 : 1024
22 : 96
23 : 2048
24 : 14
25 : 4096
26 : 192
27 : 8192
28 : 40
29 : 16384
30 : 384
31 : 32768
32 : 11
33 : 65536
34 : 768
35 : 131072
36 : 80
37 : 262144
38 : 1536
39 : 524288
40 : 28
41 : 1048576
42 : 3072
43 : 2097152
44 : 160
45 : 4194304
46 : 6144
47 : 8388608
48 : 18
49 : 16777216
50 : 12288
51 : 33554432
52 : 320
53 : 67108864
54 : 24576
55 : 134217728
56 : 56
57 : 268435456
58 : 49152
59 : 536870912
60 : 640
61 : 1073741824
62 : 98304
63 : 2147483648
64 : 13
65 : 4294967296
66 : 196608
67 : 8589934592
68 : 1280
69 : 17179869184
70 : 393216
71 : 34359738368
72 : 112
73 : 68719476736
74 : 786432
75 : 137438953472
76 : 2560
77 : 274877906944
78 : 1572864
79 : 549755813888
80 : 36
81 : 1099511627776
82 : 3145728
83 : 2199023255552
84 : 5120
85 : 4398046511104
86 : 6291456
87 : 8796093022208
88 : 224
89 : 17592186044416
90 : 12582912
91 : 35184372088832
92 : 10240
93 : 70368744177664
94 : 25165824
95 : 140737488355328
96 : 22
97 : 281474976710656
98 : 50331648
99 : 562949953421312
100 : 20480
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | mitchs | 57 | 0.0682 | 2016/01/28 00:47:54 | 0B / 26B / 28B |
2 | Histocrat | 57 | 0.0683 | 2016/02/04 05:24:44 | 0B / 23B / 31B |
3 | olg | 59 | 0.1642 | 2016/02/04 10:30:00 | 0B / ?B / ?B |
4 | olf | 59 | 0.1022 | 2016/02/04 10:32:45 | 0B / ?B / ?B |
5 | angel | 62 | 0.0882 | 2016/01/21 16:14:07 | 0B / ?B / ?B |
6 | gmk | 64 | 0.0646 | 2016/01/22 12:46:38 | 0B / 23B / 38B |
7 | shinh | 69 | 0.0663 | 2016/01/25 20:39:26 | 0B / 32B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | llhuii | 52 | 0.0161 | 2016/01/31 16:24:44 | 0B / 17B / 32B |
2 | tails | 52 | 0.0251 | 2016/02/01 14:48:44 | 0B / 17B / 32B |
3 | teebee | 53 | 0.0223 | 2016/01/28 08:38:03 | 0B / 20B / 30B |
4 | %20 | 85 | 0.0001 | 2016/01/22 20:03:42 | 0B / 39B / 43B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | whatisgolf | 59 | 0.0489 | 2016/01/21 23:36:51 | 0B / ?B / ?B |
2 | mitchs | 59 | 0.0410 | 2016/01/22 00:47:34 | 0B / 31B / 27B |
3 | llhuii | 59 | 0.0337 | 2016/01/31 15:32:09 | 0B / 31B / 28B |
4 | xsot | 61 | 0.0937 | 2016/01/25 21:53:56 | 0B / 32B / 27B |
5 | xnor | 61 | 0.1221 | 2016/01/28 07:32:29 | 0B / ?B / ?B |
6 | rolf | 72 | 0.0335 | 2016/01/22 05:49:27 | 0B / 38B / 31B |
7 | mitchs (whatisgolf) | 57 | 0.0359 | 2016/02/04 11:06:53 | 0B / 28B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mitchs | 62 | 0.0606 | 2016/02/03 19:25:59 | 0B / 32B / 29B |
2 | llhuii | 62 | 0.0581 | 2016/02/04 00:59:22 | 0B / 32B / 29B |
3 | xsot | 64 | 0.0632 | 2016/02/03 18:56:40 | 0B / 33B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | ... | 84 | 0.0760 | 2016/01/28 09:28:42 | 0B / 48B / 34B |
2 | Jakzo | 84 | 0.0180 | 2016/01/28 09:55:05 | 0B / 48B / 34B |
3 | teebee(...,Jakzo) | 73 | 0.0289 | 2016/02/04 12:12:19 | 0B / 38B / 33B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | llhuii | 70 | 0.0128 | 2016/01/31 15:32:54 | 0B / 34B / 34B |
2 | tails | 71 | 0.0150 | 2016/01/30 22:26:23 | 0B / 35B / 34B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 83 | 0.0335 | 2016/02/01 10:37:13 | 0B / 32B / 44B |
2 | tails | 65 | 0.0409 | 2016/02/04 14:06:19 | 0B / 22B / 36B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 420 | 0.0879 | 2016/01/27 18:18:16 | 0B / 216B / 161B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 44 | 0.0130 | 2016/01/23 21:26:33 | 0B / 28B / 14B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 37 | 0.0340 | 2016/01/22 19:28:20 | 0B / 9B / 25B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | mitchs | 20 | 10000 |
2 | GolfScript | tails | 37 | 5405 |
3 | dc | tails | 44 | 4545 |
4 | Perl | llhuii | 52 | 3846 |
5 | Ruby | mitchs | 56 | 3571 |
6 | Ruby2 | mitchs | 57 | 3508 |
7 | Python | mitchs (whatisgolf) | 57 | 3508 |
8 | PARI/GP | mitchs | 58 | 3448 |
9 | xgawk | llhuii(teebee) | 60 | 3333 |
10 | Python3 | mitchs | 62 | 3225 |
11 | Bash (builtins) | tails | 65 | 3076 |
12 | AWK | llhuii | 70 | 2857 |
13 | C | llhuii | 70 | 2857 |
14 | ObjC | llhuii | 70 | 2857 |
15 | JavaScript | teebee(...,Jakzo) | 73 | 2739 |
16 | Haskell | henkma | 89 | 2247 |
17 | sed | mitchs (tails) | 174 | 1149 |
18 | Brainfuck | mitchs (cheat) | 277 | 722 |
19 | make | tails | 420 | 476 |
return to the top page