Numeral system

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

The input is number of N and X, convert X into the N-adic number.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

2 1111
10 1234
16 FF
20 0

Sample output:

15
1234
255
0

Sample input:_

6 4205
9 462
16 A8
13 1CA
7 603
18 11C
8 1020
11 698
4 10020
10 338

Sample output:

941
380
168
335
297
354
528
833
264
338

Sample input:_

8 1521
23 3A5
6 4121
20 4GB
22 320
17 39B
10 2538
17 8D0
7 6232
11 295

Sample output:

849
1822
913
1931
1496
1031
2538
2533
2179
346

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1niha290.23582007/07/28 23:01:240B / 11B / 17B
2shinh290.21302007/07/28 23:07:380B / 15B / 12B
3eban290.20652007/07/28 23:15:400B / 17B / 10B
4flagitious290.25172007/07/29 02:18:520B / 15B / 12B
5kurimura290.21402007/07/29 08:29:170B / 15B / 12B
6yvl290.22812007/08/01 00:23:250B / 17B / 10B
7ozy4dm290.23002007/08/01 12:58:380B / 17B / 11B
8leonid290.08002007/11/27 22:50:140B / 15B / 12B
9@tttttanaka290.06512012/04/06 09:13:220B / 17B / 10B
10clock290.09602012/04/06 09:26:410B / 15B / 12B
11kaki290.08512012/04/06 16:45:310B / 15B / 12B
12Histocrat290.05932013/07/01 21:56:570B / 15B / 12B
13mitchs290.03992015/04/28 06:25:260B / 15B / 12B
14ludo290.03152016/05/13 01:56:190B / 15B / 12B
15jpl320.03462014/05/27 05:27:210B / ?B / ?B
16msk350.00162010/02/16 17:54:550B / 20B / 13B
17KEN3390.13202007/10/05 17:03:550B / 22B / 15B
18tabasa400.09902008/08/19 08:07:301B / ?B / ?B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs290.23942015/11/04 13:24:580B / 15B / 12B
2ludo290.22302016/05/13 01:56:230B / 15B / 12B

Perl _

RankUserSizeTimeDateStatistics
1ySas380.47902007/07/28 23:54:410B / 24B / 11B
2ott380.48062007/08/03 06:35:330B / 24B / 11B
3teebee380.63682011/12/06 01:41:540B / 24B / 11B
4tails380.14122016/02/24 15:07:400B / 24B / 11B
5llhuii380.10272016/02/25 01:56:050B / 24B / 11B
6eban390.48472007/07/28 23:42:000B / 20B / 15B
7shinh390.50462007/07/28 23:45:510B / 20B / 15B

Python _

RankUserSizeTimeDateStatistics
1kt3k490.35602007/07/29 05:14:090B / 27B / 20B
2Defenestrator490.34652007/07/29 11:42:240B / 30B / 17B
3hirose490.34572007/07/29 12:22:140B / 30B / 17B
4Mark Byers490.75772007/08/04 15:38:160B / 27B / 20B
5hallvabo490.20712009/01/07 08:50:140B / 30B / 17B
6recursive490.08082009/01/07 10:17:570B / 30B / 17B
7leonid490.09802010/11/28 00:03:050B / 30B / 17B
8twobit490.07012011/03/04 23:56:430B / 30B / 17B
9Hendrik490.08272012/01/15 07:20:130B / 30B / 17B
10clock490.05812012/10/05 16:16:160B / 30B / 17B
11xsot490.09432013/10/28 10:32:310B / 30B / 17B
12teebee490.09452014/12/25 02:40:200B / 30B / 17B
13starmie490.09352015/02/23 21:52:510B / ?B / ?B
14mitchs490.16662015/09/19 01:00:550B / 30B / 17B
15llhuii490.12032015/09/19 01:39:410B / 30B / 17B
16ch3ka510.08572010/12/11 23:09:170B / 34B / 15B
17govind510.09442013/05/11 02:30:590B / ?B / ?B
18zetamatta520.35412007/07/29 16:56:370B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1xsot450.17952016/03/02 21:16:560B / 26B / 16B
2mitchs450.17392016/03/02 21:38:150B / 26B / 16B
3llhuii460.15852015/09/19 01:40:370B / 27B / 18B
4z423x5c6760.16332014/08/02 21:24:010B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1teebee560.08372012/01/09 09:14:455B / 28B / 22B
2vos650.01742009/11/21 21:04:285B / ?B / ?B
3primo650.09482012/01/09 07:49:515B / 35B / 24B
4o-cn670.15902009/11/17 19:34:470B / 37B / 28B
5daira850.50492007/08/20 17:43:530B / 46B / 35B

Pike _

RankUserSizeTimeDateStatistics
1clock820.25782015/03/10 08:50:570B / 49B / 31B
2teebee820.23782015/03/10 09:22:510B / 49B / 31B

Scheme _

RankUserSizeTimeDateStatistics
1kaki610.10922011/03/21 08:29:310B / 38B / 21B
2murky-satyr620.10232011/03/20 17:42:030B / 37B / 24B
3pla990.41332007/07/31 03:20:030B / 60B / 35B

Common LISP _

RankUserSizeTimeDateStatistics
1ttmh520.09432016/02/23 20:19:490B / 34B / 18B
2kozima530.55902008/09/24 08:42:110B / 31B / 20B
3Defenestrator870.58802007/07/29 11:53:130B / 55B / 26B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr525.39192011/03/20 17:45:040B / 35B / 15B

Io _

RankUserSizeTimeDateStatistics
1clock690.23002015/02/22 00:12:190B / 57B / 10B
2murky-satyr742.53742008/05/11 00:26:540B / 61B / 8B

JavaScript _

RankUserSizeTimeDateStatistics
1nn520.10312008/08/18 13:20:040B / 27B / 24B
2murky-satyr520.12112008/08/18 14:55:130B / 24B / 27B
30mg520.00312010/04/20 22:15:200B / 24B / 27B
4ktt540.01932010/04/04 17:37:320B / 33B / 20B
5kaki540.03292011/05/30 10:08:300B / 33B / 20B
6Hendrik540.07072012/02/26 22:23:230B / 33B / 20B
7clock540.09442012/04/11 22:47:080B / 33B / 20B
8Shmiddty540.07942013/04/20 07:51:000B / 33B / 20B
9teebee540.05742016/02/24 09:32:330B / 33B / 20B
10eban590.12362007/07/29 14:10:500B / 36B / 22B

Lua _

RankUserSizeTimeDateStatistics
1rickrickrick530.08902007/08/01 10:21:190B / 36B / 15B
2murky-satyr530.49552008/08/18 15:16:120B / 36B / 15B
3twobit530.00272011/03/06 02:48:430B / 36B / 15B
4Hendrik530.06292011/12/06 19:37:100B / 36B / 16B
5clock530.04792012/06/09 00:16:190B / 36B / 15B
6planque540.08522007/07/31 21:44:130B / 37B / 15B
7eban670.08962007/07/30 16:26:100B / 41B / 21B

Tcl _

RankUserSizeTimeDateStatistics
1clock1190.04902012/08/27 18:19:080B / 70B / 29B

Icon _

RankUserSizeTimeDateStatistics
1teebee540.05572012/04/08 06:01:440B / 34B / 15B
2clock540.07122012/04/13 22:37:560B / 34B / 16B
3pooq550.05242012/04/03 22:06:060B / 35B / 16B

REXX _

RankUserSizeTimeDateStatistics
1*yuko*910.03552014/03/17 00:04:010B / 55B / 31B
2clock940.04102012/11/14 18:27:130B / 58B / 21B
3teebee940.03462012/12/30 05:36:180B / 58B / 21B

Smalltalk _

RankUserSizeTimeDateStatistics
1clock640.08122013/01/07 06:43:170B / 47B / 13B
2murky-satyr650.98012008/08/18 15:20:270B / 47B / 14B

Prolog _

RankUserSizeTimeDateStatistics
1pooq1220.22552008/08/19 05:29:210B / 73B / 49B

Forth _

RankUserSizeTimeDateStatistics
151b1000.06962009/06/07 05:06:110B / 69B / 12B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*830.00352011/07/25 00:03:290B / 43B / 35B
2yt1150.14072007/08/31 11:37:020B / ?B / ?B

Erlang _

RankUserSizeTimeDateStatistics
1teebee1180.30062016/07/14 08:05:220B / 64B / 50B
251b1290.89702007/12/12 23:08:580B / 70B / 55B

J _

RankUserSizeTimeDateStatistics
1Hendrik370.07102016/10/13 06:00:100B / 19B / 18B
2I., S.380.10922010/12/25 19:59:210B / 17B / 20B
3pooq390.40322007/12/08 10:20:240B / 16B / 22B

C _

RankUserSizeTimeDateStatistics
1hinoe610.05272007/07/28 23:56:000B / 35B / 26B
2kurimura610.07802007/07/29 08:38:340B / 33B / 28B
3ozy4dm610.05472007/07/30 21:15:470B / 35B / 26B
451b610.08222007/07/30 22:18:200B / 35B / 26B
5notogawa610.08692007/08/15 13:58:430B / 34B / 27B
6inaniwa610.00102010/02/09 21:44:250B / 34B / 27B
7Reputeless610.00182011/02/05 11:17:540B / 35B / 26B
8llhuii610.03192015/09/19 02:19:000B / 35B / 26B
9shinh660.05962007/07/28 22:58:560B / 35B / 31B
10eban660.09222007/07/29 20:12:430B / 35B / 31B
11david_werecat660.03782012/07/17 01:12:510B / 35B / 31B
12pap670.03982013/10/25 15:07:310B / 39B / 28B
13csanders1120.00112010/11/17 09:23:453B / 54B / 51B

C++ _

RankUserSizeTimeDateStatistics
1ozy4dm780.17982007/08/01 13:09:580B / 47B / 30B
2kurimura780.11092007/08/02 23:57:100B / 43B / 34B

D _

RankUserSizeTimeDateStatistics
1kurimura990.08302007/07/29 19:32:260B / 72B / 24B
251b1040.05292007/11/05 08:38:060B / 72B / 30B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1390.39092007/08/26 20:25:420B / 76B / 50B
2ksk(embed)1440.31892007/08/26 19:32:420B / 100B / 23B
3m.ukai(embed)1480.24972007/08/07 11:05:240B / 105B / 21B
4m.ukai1670.30302007/08/07 10:53:150B / 113B / 33B

Haskell _

RankUserSizeTimeDateStatistics
1henkma900.06212012/01/22 00:09:170B / 56B / 31B
2notogawa900.05112012/01/22 01:21:330B / 54B / 33B
3moriA940.13122007/08/03 00:59:220B / 57B / 31B
4rst76940.00222010/03/16 19:45:090B / 55B / 35B

ObjC _

RankUserSizeTimeDateStatistics
1llhuii610.03392015/09/19 02:23:060B / 35B / 26B

Java _

RankUserSizeTimeDateStatistics
1clock1160.28222012/10/26 19:02:370B / 80B / 31B
2teebee1160.32472012/10/27 02:51:180B / 80B / 31B
3hakusui1390.50212011/12/07 00:47:500B / ?B / ?B
47gyou2051.37182007/07/29 11:01:450B / 150B / 48B
5fuddy2120.96392007/10/07 22:31:180B / 152B / 52B

Pascal _

RankUserSizeTimeDateStatistics
1uru970.05442009/01/26 22:26:040B / 65B / 28B
2pooq970.09352009/01/26 23:40:190B / 63B / 30B
3*yuko*970.04652010/03/31 20:52:170B / 63B / 30B
4teebee970.03422014/01/04 11:19:290B / 65B / 28B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1070.04052011/11/10 00:31:580B / 64B / 41B

Nemerle _

RankUserSizeTimeDateStatistics
1clock1200.17902012/08/23 11:57:420B / 73B / 42B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*2420.00252011/07/24 23:50:210B / 184B / 21B

Maxima _

RankUserSizeTimeDateStatistics
1pooq650.39132011/03/11 12:04:590B / 38B / 27B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa731.27202011/03/21 20:37:570B / 46B / 26B

REBOL _

RankUserSizeTimeDateStatistics
1clock1100.08052012/07/19 06:42:000B / 66B / 24B

AWK _

RankUserSizeTimeDateStatistics
1llhuii690.03182014/08/03 01:04:590B / 40B / 29B
2nn780.07282008/07/04 01:04:060B / 49B / 28B

jq _

RankUserSizeTimeDateStatistics
1clock810.03242015/02/11 21:10:400B / 37B / 42B
2teebee830.04102014/12/08 08:31:190B / 39B / 41B

Bash _

RankUserSizeTimeDateStatistics
1llhuii260.05082016/02/25 01:37:520B / 12B / 10B
2teebee260.04112016/02/25 05:50:410B / 12B / 10B
3Hendrik260.05062016/03/29 22:03:260B / 12B / 10B
4eban290.29722008/01/29 14:54:550B / 10B / 16B
5znz360.30182007/08/01 01:21:260B / 23B / 6B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii260.04112016/02/25 01:38:010B / 12B / 10B
2teebee260.03942016/02/25 05:50:120B / 12B / 10B
3ttmh260.04932016/02/29 20:31:220B / 12B / 10B
4Hendrik260.04872016/03/29 22:04:480B / 12B / 10B
5tails260.04362016/05/15 01:05:420B / 12B / 10B

Zsh _

RankUserSizeTimeDateStatistics
1Hendrik250.05662016/03/30 01:48:410B / 9B / 13B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii690.04482014/08/03 01:07:100B / 40B / 29B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)460.93832007/07/29 01:33:2521B / 15B / 9B
2ySas670.92082007/07/29 00:00:3328B / 23B / 16B
3yshl810.90562007/07/29 01:33:080B / 59B / 10B

R _

RankUserSizeTimeDateStatistics
1clock680.44042012/10/14 13:57:280B / 46B / 22B

Befunge _

RankUserSizeTimeDateStatistics
1Mark Byers390.02282007/08/12 09:32:552B / 7B / 29B
2hirose450.06522007/07/31 15:34:400B / 12B / 31B
3ySas460.02732007/07/31 00:36:160B / 10B / 34B

GolfScript _

RankUserSizeTimeDateStatistics
1tails300.13522012/03/24 04:14:300B / 10B / 18B
2clock300.15882012/05/05 03:51:150B / 10B / 18B
3leonid310.30982008/01/03 01:31:560B / 11B / 18B
4narb310.15052010/09/09 20:14:390B / ?B / ?B
5irori330.38592007/12/31 04:20:440B / 14B / 16B
6flagitious380.38132007/12/21 12:40:380B / 12B / 24B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs110.26492015/04/28 06:19:214B / 5B / 2B
2whio110.23342015/10/30 01:25:414B / 5B / 2B

FlogScript _

RankUserSizeTimeDateStatistics
1zzo3870.09122010/03/15 13:08:590B / ?B / ?B
2clock70.13902012/06/12 10:30:480B / 3B / 4B
3teebee70.09892014/01/02 21:02:160B / 3B / 4B
4mitchs70.09362015/12/13 06:06:290B / 3B / 4B

Burlesque _

RankUserSizeTimeDateStatistics
1clock140.04132013/04/22 00:20:340B / 10B / 4B
2teebee140.03682013/12/30 03:46:190B / 10B / 4B
3Hendrik140.03572014/04/19 15:50:070B / 10B / 4B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*580.04912011/07/25 00:37:3131B / 15B / 5B

Vim _

RankUserSizeTimeDateStatistics
1clock850.07752012/04/03 21:56:196B / 43B / 33B
2nn1010.14792010/10/16 01:05:243B / 49B / 44B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr230.39902008/08/18 15:01:160B / 9B / 11B
2mitchs230.08942015/12/13 05:41:300B / 9B / 11B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr636.17912011/03/20 18:08:030B / 45B / 14B
2nn6911.70892008/05/11 11:11:200B / 49B / 19B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr6719.93072011/03/20 17:59:540B / 46B / 18B
2Hendrik679.50792013/08/20 02:13:420B / 46B / 18B

Language Ranking_

RankLangUserSizeScore
1FlogScriptzzo38710000
2gs2mitchs116363
3Burlesqueclock145000
4gorubymurky-satyr233043
5ZshHendrik252800
6Bashllhuii262692
7Bash (builtins)llhuii262692
8Rubyniha292413
9Ruby2mitchs292413
10GolfScripttails302333
11JHendrik371891
12PerlySas381842
13BefungeMark Byers391794
14Python3xsot451555
15Postscriptyshl(bin)461521
16Pythonkt3k491428
17JavaScriptnn521346
18Clojuremurky-satyr521346
19Common LISPttmh521346
20Luarickrickrick531320
21Iconteebee541296
22PHPteebee561250
23z80*yuko*581206
24Chinoe611147
25Schemekaki611147
26ObjCllhuii611147
27Groovymurky-satyr631111
28Smalltalkclock641093
29Maximapooq651076
30Scalamurky-satyr671044
31Rclock681029
32AWKllhuii691014
33xgawkllhuii691014
34Ioclock691014
35Octaveinaniwa73958
36C++ozy4dm78897
37jqclock81864
38Pikeclock82853
39BASIC*yuko*83843
40Vimclock85823
41Haskellhenkma90777
42REXX*yuko*91769
43Pascaluru97721
44Dkurimura99707
45Forth51b100700
46Fortran*yuko*107654
47REBOLclock110636
48Javaclock116603
49Erlangteebee118593
50Tclclock119588
51Nemerleclock120583
52Prologpooq122573
53OCamlksk139503
54COBOL*yuko*242289

Referer

Note that, they may contain spoilers.

return top