base convert
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
For each (a, b) pair, print the base b representation of a.
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
6980 8
8507 5
7446 7
9427 8
6260 3
3577 4
6680 6
8930 8
3850 3
4841 3
3290 8
2162 6
9398 2
7121 4
6914 7
7217 3
5694 8
9993 10
5024 3
5086 8
5459 8
2584 5
505 4
4461 8
9464 8
4026 6
9844 4
7275 3
350 9
4156 7
5481 8
1034 7
5524 5
6900 4
6299 7
6127 5
7477 7
4640 5
6756 8
4008 10
2834 3
5254 8
1997 3
1564 6
9302 9
9761 9
7953 4
4339 7
8832 10
8356 9
Sample output:
15504
233012
30465
22323
22120212
313321
50532
21342
12021121
20122022
6332
14002
10010010110110
1233101
26105
100220022
13076
9993
20220002
11736
12523
40314
13321
10555
22370
30350
2121310
100222110
428
15055
12551
3005
134044
1223310
24236
144002
30541
122030
15144
4008
10212222
12206
2201222
11124
13675
14345
1330101
15436
8832
12414
Sample input:_
1582 9
8009 9
7712 9
2215 4
5258 7
7010 8
2239 4
9331 3
924 6
877 8
7458 10
1140 9
6287 8
2701 8
6135 4
2470 7
3334 5
4904 5
4302 9
3286 2
1543 9
8521 3
4794 7
9972 9
9299 3
559 4
4487 7
2584 3
7369 9
3587 10
1192 10
9778 6
5032 10
1925 8
5517 5
8925 10
7746 7
5360 5
6958 5
4728 8
3600 10
7978 7
2119 6
120 10
9142 6
5270 5
7285 10
8423 4
2471 3
676 9
Sample output:
2147
11878
11518
202213
21221
15542
202333
110210121
4140
1555
7458
1506
14217
5215
1133313
10126
101314
124104
5810
110011010110
2104
102200121
16656
14610
110202102
20233
16040
10112201
11087
3587
1192
113134
5032
3605
134032
8925
31404
132420
210313
11170
3600
32155
13451
120
110154
132040
7285
2003213
10101112
831
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | msk | 31 | 0.0062 | 2010/08/21 09:05:28 | 0B / 18B / 9B |
2 | murky-satyr | 31 | 0.0053 | 2010/08/21 09:11:21 | 0B / 18B / 9B |
3 | eban | 31 | 0.0058 | 2010/08/21 13:38:39 | 0B / 18B / 9B |
4 | yvl | 31 | 0.0063 | 2010/08/21 19:18:37 | 0B / 18B / 9B |
5 | leonid | 31 | 0.0091 | 2010/08/23 04:18:09 | 0B / 18B / 9B |
6 | uru | 31 | 0.0069 | 2010/08/23 15:34:50 | 0B / 18B / 9B |
7 | shinh | 31 | 0.0095 | 2010/08/23 22:12:53 | 0B / 18B / 9B |
8 | hide24 | 31 | 0.0090 | 2010/08/24 11:24:31 | 0B / 18B / 9B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | ySas | 49 | 0.0044 | 2010/08/22 12:27:33 | 0B / 12B / 34B |
2 | Terje K | 49 | 0.0905 | 2010/08/25 16:01:55 | 0B / 12B / 34B |
3 | yibe | 51 | 0.0056 | 2010/08/21 13:30:26 | 0B / 20B / 29B |
4 | Mithran | 53 | 0.0041 | 2010/08/23 19:51:19 | 0B / 14B / 35B |
5 | eban | 55 | 0.0041 | 2010/09/03 14:19:18 | 0B / 16B / 35B |
6 | prakash | 57 | 0.0506 | 2010/08/30 12:18:51 | 0B / 21B / 32B |
7 | MG | 65 | 0.0037 | 2010/08/21 05:46:25 | 0B / 25B / 38B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hallvabo | 79 | 0.0483 | 2010/08/21 20:34:40 | 0B / 43B / 29B |
2 | hiro.suzuki | 79 | 0.0526 | 2010/08/21 22:58:17 | 0B / 43B / 29B |
3 | xulapp | 79 | 0.0515 | 2010/09/03 20:54:42 | 0B / 43B / 29B |
4 | primo | 80 | 0.0522 | 2010/08/23 08:36:41 | 0B / 46B / 25B |
5 | primo (alt) | 81 | 0.0534 | 2010/08/23 23:30:44 | 0B / 52B / 23B |
6 | pv2b | 82 | 0.0429 | 2010/09/01 07:28:46 | 0B / 46B / 29B |
7 | msk | 83 | 0.0778 | 2010/08/23 23:23:23 | 0B / 51B / 30B |
8 | recursive | 83 | 0.0483 | 2010/08/24 02:06:43 | 3B / 46B / 25B |
9 | kotauchi | 85 | 0.0514 | 2010/08/30 13:56:56 | 1B / ?B / ?B |
10 | nooodl | 88 | 0.0488 | 2010/08/21 01:16:51 | 3B / ?B / ?B |
11 | hex | 120 | 0.0596 | 2010/08/21 07:49:58 | 3B / ?B / ?B |
12 | croyal | 150 | 0.0519 | 2010/08/21 02:33:56 | 0B / ?B / ?B |
13 | govind | 160 | 0.0611 | 2013/05/11 05:20:00 | 10B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | xulapp | 64 | 0.0840 | 2010/08/23 12:32:04 | 1B / 41B / 22B |
2 | o-cn | 64 | 0.0798 | 2010/08/24 05:18:08 | 1B / 41B / 22B |
3 | primo | 65 | 0.0809 | 2010/08/24 22:13:06 | 5B / 35B / 24B |
4 | kokosek | 68 | 0.0701 | 2010/08/26 16:51:17 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kozima | 42 | 0.1482 | 2010/08/23 08:43:04 | 0B / 26B / 14B |
2 | ttmh | 38 | 0.0413 | 2014/08/16 18:31:56 | 0B / 27B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 84 | 0.4192 | 2010/08/21 06:23:13 | 0B / 70B / 7B |
2 | murky-satyr | 77 | 0.3242 | 2010/09/07 16:31:53 | 0B / 64B / 8B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | xulapp | 55 | 0.0105 | 2010/08/21 15:18:59 | 0B / 27B / 28B |
2 | murky-satyr | 55 | 0.0086 | 2010/08/21 15:20:00 | 0B / 25B / 29B |
3 | nn | 55 | 0.0089 | 2010/08/22 14:12:23 | 0B / 26B / 27B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 58 | 0.1192 | 2010/08/21 04:47:09 | 0B / 28B / 29B |
2 | pooq | 40 | 0.1970 | 2012/03/05 10:22:14 | 0B / 19B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 33 | 0.0860 | 2010/08/21 02:22:25 | 0B / 12B / 20B |
2 | I., S.(pooq) | 32 | 0.0925 | 2011/03/08 21:44:12 | 0B / 12B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 77 | 0.0012 | 2010/08/23 01:10:15 | 0B / 38B / 39B |
2 | nai | 81 | 0.0012 | 2010/08/25 14:08:29 | 0B / 41B / 40B |
3 | not | 82 | 0.0012 | 2010/08/21 01:41:46 | 0B / 41B / 41B |
4 | inaniwa | 82 | 0.0008 | 2010/08/21 08:53:20 | 0B / 41B / 41B |
5 | yuyarin | 83 | 0.0012 | 2010/09/01 07:35:55 | 0B / 43B / 40B |
6 | msk | 83 | 0.0011 | 2010/09/03 18:43:48 | 0B / 41B / 42B |
7 | Debanjan | 84 | 0.0012 | 2010/08/21 23:57:21 | 0B / ?B / ?B |
8 | pv2b | 89 | 0.0012 | 2010/09/01 07:51:49 | 0B / 44B / 43B |
9 | _ | 101 | 0.0014 | 2010/08/21 14:44:37 | 0B / ?B / ?B |
10 | croyal | 174 | 0.0013 | 2010/08/21 02:58:55 | 0B / ?B / ?B |
11 | _ | 89 | 0.0011 | 2010/09/04 02:08:25 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rst76 | 81 | 0.0073 | 2010/08/21 14:11:22 | 0B / 53B / 21B |
2 | notogawa | 81 | 0.0082 | 2010/08/21 17:45:59 | 0B / 53B / 21B |
3 | Lost_dog | 82 | 0.0074 | 2010/08/23 00:25:04 | 0B / 51B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hallvabo | 133 | 0.3514 | 2010/08/27 17:17:53 | 0B / 95B / 34B |
2 | nattow | 133 | 0.3542 | 2010/08/31 11:31:28 | 0B / 93B / 36B |
3 | teebee | 132 | 0.3541 | 2010/11/07 02:46:05 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | *yuko* | 117 | 0.0015 | 2010/08/23 23:40:30 | 0B / 79B / 28B |
2 | uru | 117 | 0.0015 | 2010/08/24 23:16:44 | 0B / 79B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | *yuko* | 75 | 0.0106 | 2010/08/27 11:26:06 | 0B / 44B / 30B |
2 | croyal | 295 | 0.0027 | 2010/08/21 06:20:58 | 0B / ?B / ?B |
3 | *yuko* | 74 | 0.0301 | 2012/12/04 22:53:22 | 0B / 40B / 33B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 57 | 0.3566 | 2010/08/21 03:53:25 | 0B / 28B / 26B |
2 | pooq | 56 | 0.3816 | 2011/03/11 01:38:54 | 0B / 26B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | yamaya | 39 | 0.0364 | 2010/08/26 01:15:24 | 0B / 17B / 22B |
2 | eban | 39 | 0.0187 | 2010/09/03 13:36:27 | 0B / 17B / 22B |
3 | llhuii | 39 | 0.0237 | 2014/08/16 20:22:59 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 194 | 0.6740 | 2012/04/08 21:06:52 | 0B / 61B / 116B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hinoe | 110 | 1.1415 | 2010/08/23 23:27:27 | 0B / 34B / 70B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 12 | 0.1508 | 2010/08/21 06:25:51 | 0B / 6B / 5B |
2 | KirarinSnow | 12 | 0.1462 | 2010/08/21 06:39:31 | 0B / 6B / 5B |
3 | murky-satyr | 12 | 0.1379 | 2010/08/21 10:58:54 | 0B / 6B / 5B |
4 | doug | 12 | 0.1513 | 2010/08/21 11:29:55 | 0B / 6B / 5B |
5 | yvl | 12 | 0.2310 | 2010/08/21 19:24:19 | 0B / 6B / 5B |
6 | leonid | 12 | 0.1530 | 2010/08/22 17:19:37 | 0B / 6B / 5B |
7 | narb | 12 | 0.1490 | 2010/08/23 17:03:58 | 0B / ?B / ?B |
8 | nooodl | 14 | 0.1464 | 2010/08/21 01:19:39 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | whio | 5 | 0.1894 | 2017/04/24 23:36:03 | 1B / 4B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | milieu | 10 | 0.2006 | 2010/08/21 02:02:40 | 0B / ?B / ?B |
2 | zzo38 | 10 | 0.2690 | 2010/08/27 06:57:26 | 0B / 5B / 5B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | *yuko* | 60 | 0.7816 | 2010/09/03 19:26:48 | 31B / 15B / 8B |
2 | *yuko* | 55 | 0.7661 | 2010/10/14 01:48:57 | 29B / 12B / 8B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 67 | 0.1718 | 2010/10/13 23:28:10 | 0B / 36B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 63 | 4.1067 | 2010/08/22 14:26:47 | 0B / 48B / 14B |
2 | murky-satyr | 66 | 6.0336 | 2010/09/03 14:15:21 | 0B / 47B / 16B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | whio | 5 | 10000 |
2 | Burlesque | Hendrik | 8 | 6250 |
3 | Jelly | Erik the Outgolfer | 8 | 6250 |
4 | FlogScript | milieu | 10 | 5000 |
5 | Bash | yamaya | 10 | 5000 |
6 | Fish | eban | 10 | 5000 |
7 | Zsh | eban | 10 | 5000 |
8 | GolfScript | nn | 12 | 4166 |
9 | dc | ninjalj | 12 | 4166 |
10 | goruby | murky-satyr | 19 | 2631 |
11 | K | teebee | 23 | 2173 |
12 | Postscript | ySas | 30 | 1666 |
13 | Ruby | msk | 31 | 1612 |
14 | J | I., S.(pooq) | 32 | 1562 |
15 | bc | teebee | 34 | 1470 |
16 | Common LISP | ttmh | 38 | 1315 |
17 | AWK | yamaya | 39 | 1282 |
18 | Prolog | pooq | 40 | 1250 |
19 | Scheme | KirarinSnow | 42 | 1190 |
20 | Clojure | uochan | 45 | 1111 |
21 | LilyPond | KirarinSnow | 48 | 1041 |
22 | Perl | ySas | 49 | 1020 |
23 | JavaScript | xulapp | 55 | 909 |
24 | z80 | *yuko* | 55 | 909 |
25 | Maxima | pooq | 56 | 892 |
26 | Octave | inaniwa | 56 | 892 |
27 | Groovy | nn | 63 | 793 |
28 | PHP | xulapp | 64 | 781 |
29 | Vim | nn | 67 | 746 |
30 | Fortran | *yuko* | 74 | 675 |
31 | Scala | murky-satyr | 76 | 657 |
32 | C | nn | 77 | 649 |
33 | Io | murky-satyr | 77 | 649 |
34 | Python | hallvabo | 79 | 632 |
35 | BASIC | *yuko* | 79 | 632 |
36 | Haskell | rst76 | 81 | 617 |
37 | Lua | yamaya | 85 | 588 |
38 | Asymptote | teebee(xulapp) | 86 | 581 |
39 | OCaml | m.ukai | 98 | 510 |
40 | R | seichung | 106 | 471 |
41 | wake | hinoe | 110 | 454 |
42 | Erlang | zubenalt | 116 | 431 |
43 | Pascal | *yuko* | 117 | 427 |
44 | Java | teebee | 132 | 378 |
45 | sed | tails | 194 | 257 |
return to the top page