base convert

Submit

Your name:
File:
Open code-statistics:

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

Ruby _

RankUserSizeTimeDateStatistics
1msk310.00622010/08/21 09:05:280B / 18B / 9B
2murky-satyr310.00532010/08/21 09:11:210B / 18B / 9B
3eban310.00582010/08/21 13:38:390B / 18B / 9B
4yvl310.00632010/08/21 19:18:370B / 18B / 9B
5leonid310.00912010/08/23 04:18:090B / 18B / 9B
6uru310.00692010/08/23 15:34:500B / 18B / 9B
7shinh310.00952010/08/23 22:12:530B / 18B / 9B
8hide24310.00902010/08/24 11:24:310B / 18B / 9B

Perl _

RankUserSizeTimeDateStatistics
1ySas490.00442010/08/22 12:27:330B / 12B / 34B
2Terje K490.09052010/08/25 16:01:550B / 12B / 34B
3yibe510.00562010/08/21 13:30:260B / 20B / 29B
4Mithran530.00412010/08/23 19:51:190B / 14B / 35B
5eban550.00412010/09/03 14:19:180B / 16B / 35B
6prakash570.05062010/08/30 12:18:510B / 21B / 32B
7MG650.00372010/08/21 05:46:250B / 25B / 38B

Python _

RankUserSizeTimeDateStatistics
1hallvabo790.04832010/08/21 20:34:400B / 43B / 29B
2hiro.suzuki790.05262010/08/21 22:58:170B / 43B / 29B
3xulapp790.05152010/09/03 20:54:420B / 43B / 29B
4primo800.05222010/08/23 08:36:410B / 46B / 25B
5primo (alt)810.05342010/08/23 23:30:440B / 52B / 23B
6pv2b820.04292010/09/01 07:28:460B / 46B / 29B
7msk830.07782010/08/23 23:23:230B / 51B / 30B
8recursive830.04832010/08/24 02:06:433B / 46B / 25B
9kotauchi850.05142010/08/30 13:56:561B / ?B / ?B
10nooodl880.04882010/08/21 01:16:513B / ?B / ?B
11hex1200.05962010/08/21 07:49:583B / ?B / ?B
12croyal1500.05192010/08/21 02:33:560B / ?B / ?B
13govind1600.06112013/05/11 05:20:0010B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1xulapp640.08402010/08/23 12:32:041B / 41B / 22B
2o-cn640.07982010/08/24 05:18:081B / 41B / 22B
3primo650.08092010/08/24 22:13:065B / 35B / 24B
4kokosek680.07012010/08/26 16:51:170B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1KirarinSnow420.07132010/08/28 11:45:510B / 30B / 12B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima420.14822010/08/23 08:43:040B / 26B / 14B
2ttmh380.04132014/08/16 18:31:560B / 27B / 11B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr493.47532010/08/21 08:15:000B / 35B / 13B
2uochan453.57942011/01/09 16:17:320B / ?B / ?B

LilyPond _

RankUserSizeTimeDateStatistics
1KirarinSnow482.69632010/08/28 11:47:150B / 27B / 19B

Io _

RankUserSizeTimeDateStatistics
1pooq840.41922010/08/21 06:23:130B / 70B / 7B
2murky-satyr770.32422010/09/07 16:31:530B / 64B / 8B

JavaScript _

RankUserSizeTimeDateStatistics
1xulapp550.01052010/08/21 15:18:590B / 27B / 28B
2murky-satyr550.00862010/08/21 15:20:000B / 25B / 29B
3nn550.00892010/08/22 14:12:230B / 26B / 27B

Lua _

RankUserSizeTimeDateStatistics
1yamaya850.00472010/08/26 01:18:570B / 50B / 27B
2murky-satyr850.00462010/08/26 02:12:580B / 51B / 26B

Prolog _

RankUserSizeTimeDateStatistics
1pooq580.11922010/08/21 04:47:090B / 28B / 29B
2pooq400.19702012/03/05 10:22:140B / 19B / 20B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*790.00532010/08/21 23:30:170B / 49B / 26B

Erlang _

RankUserSizeTimeDateStatistics
1zubenalt1160.48492010/09/16 03:06:220B / ?B / ?B

J _

RankUserSizeTimeDateStatistics
1pooq330.08602010/08/21 02:22:250B / 12B / 20B
2I., S.(pooq)320.09252011/03/08 21:44:120B / 12B / 19B

K _

RankUserSizeTimeDateStatistics
1teebee230.01562012/03/26 01:12:330B / 6B / 15B

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer80.49362021/04/05 18:58:144B / 2B / 2B

C _

RankUserSizeTimeDateStatistics
1nn770.00122010/08/23 01:10:150B / 38B / 39B
2nai810.00122010/08/25 14:08:290B / 41B / 40B
3not820.00122010/08/21 01:41:460B / 41B / 41B
4inaniwa820.00082010/08/21 08:53:200B / 41B / 41B
5yuyarin830.00122010/09/01 07:35:550B / 43B / 40B
6msk830.00112010/09/03 18:43:480B / 41B / 42B
7Debanjan840.00122010/08/21 23:57:210B / ?B / ?B
8pv2b890.00122010/09/01 07:51:490B / 44B / 43B
9_1010.00142010/08/21 14:44:370B / ?B / ?B
10croyal1740.00132010/08/21 02:58:550B / ?B / ?B
11_890.00112010/09/04 02:08:250B / ?B / ?B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai980.07992010/09/01 02:15:110B / 61B / 29B
2murky-satyr980.07422010/09/01 02:18:240B / 57B / 32B

Haskell _

RankUserSizeTimeDateStatistics
1rst76810.00732010/08/21 14:11:220B / 53B / 21B
2notogawa810.00822010/08/21 17:45:590B / 53B / 21B
3Lost_dog820.00742010/08/23 00:25:040B / 51B / 28B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1330.35142010/08/27 17:17:530B / 95B / 34B
2nattow1330.35422010/08/31 11:31:280B / 93B / 36B
3teebee1320.35412010/11/07 02:46:050B / ?B / ?B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1170.00152010/08/23 23:40:300B / 79B / 28B
2uru1170.00152010/08/24 23:16:440B / 79B / 28B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*750.01062010/08/27 11:26:060B / 44B / 30B
2croyal2950.00272010/08/21 06:20:580B / ?B / ?B
3*yuko*740.03012012/12/04 22:53:220B / 40B / 33B

Maxima _

RankUserSizeTimeDateStatistics
1pooq570.35662010/08/21 03:53:250B / 28B / 26B
2pooq560.38162011/03/11 01:38:540B / 26B / 28B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa560.92982011/03/25 08:04:040B / 35B / 20B

Asymptote _

RankUserSizeTimeDateStatistics
1xulapp921.84992010/08/21 15:52:420B / 59B / 31B
2teebee(xulapp)860.24522011/12/17 23:41:540B / 55B / 29B

AWK _

RankUserSizeTimeDateStatistics
1yamaya390.03642010/08/26 01:15:240B / 17B / 22B
2eban390.01872010/09/03 13:36:270B / 17B / 22B
3llhuii390.02372014/08/16 20:22:590B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1tails1940.67402012/04/08 21:06:520B / 61B / 116B

Bash _

RankUserSizeTimeDateStatistics
1yamaya100.03232010/08/21 10:51:340B / 8B / 1B
2eban100.03122010/08/23 12:43:520B / 8B / 1B
3Carlos Gutierrez150.02992010/08/23 15:31:090B / 8B / 6B

Zsh _

RankUserSizeTimeDateStatistics
1eban100.07652010/08/23 12:45:130B / 8B / 1B
2Carlos Gutierrez210.03512010/08/21 08:39:440B / 13B / 7B

Fish _

RankUserSizeTimeDateStatistics
1eban100.11682010/08/23 12:45:030B / 8B / 1B
2Carlos Gutierrez210.06982010/08/21 08:40:090B / 13B / 7B

wake _

RankUserSizeTimeDateStatistics
1hinoe1101.14152010/08/23 23:27:270B / 34B / 70B

bc _

RankUserSizeTimeDateStatistics
1Carlos Gutierrez390.05412010/08/21 08:42:120B / 21B / 17B
2teebee340.04412011/07/03 05:42:240B / 19B / 14B

dc _

RankUserSizeTimeDateStatistics
1Carlos Gutierrez140.00462010/08/21 08:36:400B / 10B / 4B
2zzo38140.00442010/08/27 07:01:160B / 10B / 4B
3ninjalj120.00462011/02/14 08:22:100B / ?B / ?B

Postscript _

RankUserSizeTimeDateStatistics
1ySas300.29502010/08/21 11:03:1812B / 12B / 6B
2KirarinSnow(bin)320.29552010/08/21 06:33:366B / 17B / 8B
3KirarinSnow480.29372010/08/21 06:32:410B / 35B / 8B

R _

RankUserSizeTimeDateStatistics
1seichung1060.63642010/08/23 04:18:270B / 54B / 50B

GolfScript _

RankUserSizeTimeDateStatistics
1nn120.15082010/08/21 06:25:510B / 6B / 5B
2KirarinSnow120.14622010/08/21 06:39:310B / 6B / 5B
3murky-satyr120.13792010/08/21 10:58:540B / 6B / 5B
4doug120.15132010/08/21 11:29:550B / 6B / 5B
5yvl120.23102010/08/21 19:24:190B / 6B / 5B
6leonid120.15302010/08/22 17:19:370B / 6B / 5B
7narb120.14902010/08/23 17:03:580B / ?B / ?B
8nooodl140.14642010/08/21 01:19:390B / ?B / ?B

gs2 _

RankUserSizeTimeDateStatistics
1whio50.18942017/04/24 23:36:031B / 4B / 0B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu100.20062010/08/21 02:02:400B / ?B / ?B
2zzo38100.26902010/08/27 06:57:260B / 5B / 5B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik80.03712015/04/30 23:37:510B / 4B / 4B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*600.78162010/09/03 19:26:4831B / 15B / 8B
2*yuko*550.76612010/10/14 01:48:5729B / 12B / 8B

Vim _

RankUserSizeTimeDateStatistics
1nn670.17182010/10/13 23:28:100B / 36B / 30B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr190.10192010/08/21 08:27:550B / 8B / 8B
2leonid190.10452010/08/23 23:56:170B / 8B / 8B

Groovy _

RankUserSizeTimeDateStatistics
1nn634.10672010/08/22 14:26:470B / 48B / 14B
2murky-satyr666.03362010/09/03 14:15:210B / 47B / 16B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr766.71292011/03/01 04:20:330B / 54B / 18B
2aglias847.27992011/02/27 03:00:280B / 58B / 21B

Language Ranking_

RankLangUserSizeScore
1gs2whio510000
2BurlesqueHendrik86250
3JellyErik the Outgolfer86250
4FlogScriptmilieu105000
5Bashyamaya105000
6Fisheban105000
7Zsheban105000
8GolfScriptnn124166
9dcninjalj124166
10gorubymurky-satyr192631
11Kteebee232173
12PostscriptySas301666
13Rubymsk311612
14JI., S.(pooq)321562
15bcteebee341470
16Common LISPttmh381315
17AWKyamaya391282
18Prologpooq401250
19SchemeKirarinSnow421190
20Clojureuochan451111
21LilyPondKirarinSnow481041
22PerlySas491020
23JavaScriptxulapp55909
24z80*yuko*55909
25Maximapooq56892
26Octaveinaniwa56892
27Groovynn63793
28PHPxulapp64781
29Vimnn67746
30Fortran*yuko*74675
31Scalamurky-satyr76657
32Cnn77649
33Iomurky-satyr77649
34Pythonhallvabo79632
35BASIC*yuko*79632
36Haskellrst7681617
37Luayamaya85588
38Asymptoteteebee(xulapp)86581
39OCamlm.ukai98510
40Rseichung106471
41wakehinoe110454
42Erlangzubenalt116431
43Pascal*yuko*117427
44Javateebee132378
45sedtails194257

return to the top page