Two Dice of A sides

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

Here is two dice.
Each dice have A-sides.

Now, I want to express natural numbers from 1 to N by using two dice.
All the sides of dice have number 0-9.
(The sides of one dice do not have the same number.)

For example, each two dice which have 2 sides...

dice 1 ... { 1, 2 }
dice 2 ... { 3, 4 }

The natural number that can be expressed...

{ 1 , 2 , 3 , 4 , 13 , 23 , 24 , 31 , 32 , 41 , 42 }

So, 2-sides-dice can express from 1 to 4.

About N(1<=N<=99), please tell me the minimum number A!

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

*NOTHING*

Sample output:

N=1,A=1
N=2,A=1
N=3,A=2
N=4,A=2
N=5,A=3
N=6,A=3
N=7,A=4
N=8,A=4
N=9,A=5
N=10,A=5
N=11,A=6
N=12,A=6
N=13,A=6
N=14,A=6
N=15,A=6
N=16,A=6
N=17,A=6
N=18,A=6
N=19,A=6
N=20,A=6
N=21,A=6
N=22,A=6
N=23,A=6
N=24,A=6
N=25,A=6
N=26,A=6
N=27,A=6
N=28,A=6
N=29,A=6
N=30,A=6
N=31,A=6
N=32,A=6
N=33,A=7
N=34,A=7
N=35,A=7
N=36,A=7
N=37,A=7
N=38,A=7
N=39,A=7
N=40,A=7
N=41,A=7
N=42,A=7
N=43,A=7
N=44,A=7
N=45,A=7
N=46,A=7
N=47,A=7
N=48,A=7
N=49,A=7
N=50,A=7
N=51,A=7
N=52,A=7
N=53,A=7
N=54,A=7
N=55,A=8
N=56,A=8
N=57,A=8
N=58,A=8
N=59,A=8
N=60,A=8
N=61,A=8
N=62,A=8
N=63,A=8
N=64,A=8
N=65,A=8
N=66,A=8
N=67,A=8
N=68,A=8
N=69,A=8
N=70,A=8
N=71,A=8
N=72,A=8
N=73,A=8
N=74,A=8
N=75,A=8
N=76,A=8
N=77,A=9
N=78,A=9
N=79,A=9
N=80,A=9
N=81,A=9
N=82,A=9
N=83,A=9
N=84,A=9
N=85,A=9
N=86,A=9
N=87,A=9
N=88,A=9
N=89,A=9
N=90,A=9
N=91,A=9
N=92,A=9
N=93,A=9
N=94,A=9
N=95,A=9
N=96,A=9
N=97,A=9
N=98,A=9
N=99,A=10

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Mark Byers490.10902007/08/15 01:15:230B / 21B / 28B
2shinh490.10052007/08/18 04:33:150B / 22B / 27B
3ksk490.11762007/08/27 22:55:250B / 22B / 27B
4flagitious490.12432007/08/28 07:50:130B / 19B / 30B
5eban490.11672007/08/28 11:40:040B / 18B / 30B
6niha510.10122007/08/14 17:29:160B / 22B / 29B
7letter510.10982007/08/27 08:21:460B / 24B / 27B
8ozy4dm520.08892007/08/14 17:21:180B / 19B / 33B
9AtoMa520.09652007/08/16 09:15:350B / ?B / ?B
10kodera520.09572007/08/21 03:09:040B / 25B / 27B
11tabasa1330.02712007/10/02 11:54:387B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89430.04912007/08/17 00:03:500B / ?B / ?B
2ySas430.04732007/08/18 08:37:160B / 14B / 28B
3letter440.04372007/08/23 23:05:580B / 17B / 26B
4unau440.06332007/08/24 20:20:180B / 21B / 20B
5shinh440.05442007/08/28 02:04:280B / 16B / 27B
6ozy4dm500.04192007/08/15 07:22:510B / 20B / 29B
7Mark Byers520.04092007/08/15 21:37:590B / 23B / 27B
8deq530.04182007/08/14 22:08:570B / 24B / 28B

Python _

RankUserSizeTimeDateStatistics
1Mark Byers560.11832007/08/15 00:56:110B / 23B / 33B
2letter560.12602007/08/24 00:44:110B / 30B / 26B
3hiro.suzuki 580.12222007/08/14 21:18:420B / 31B / 27B
4Defenestrator600.13892007/08/17 20:53:080B / 30B / 30B
5kt3k600.14012007/08/20 14:32:250B / 30B / 29B
6hirose600.16022007/08/23 12:47:120B / 31B / 28B
7zetamatta720.11492007/08/15 01:19:390B / 38B / 30B

Python3 _

RankUserSizeTimeDateStatistics
1user_18950.04552020/11/29 06:33:570B / 492B / 305B

PHP _

RankUserSizeTimeDateStatistics
1letter520.19832007/08/22 12:52:250B / 21B / 30B
2unau550.19692007/08/25 15:20:100B / 22B / 32B
3ozy4dm580.18912007/08/17 10:50:350B / 23B / 34B
4honestnaoko730.19152007/08/25 14:10:200B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1letter930.12752007/08/24 01:01:260B / 49B / 36B
2pla1110.63542007/08/17 06:15:310B / 56B / 49B
3murky-satyr780.06942008/06/25 03:40:570B / 36B / 35B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima810.23122007/08/18 18:52:230B / 41B / 32B
2Defenestrator920.19182007/08/17 21:02:150B / 48B / 30B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr603.59972009/10/27 03:34:060B / 31B / 23B
2pooq623.53122009/10/07 00:57:310B / 29B / 26B

Io _

RankUserSizeTimeDateStatistics
1poop771.61152007/08/18 23:35:200B / 42B / 34B
2murky-satyr570.86952008/08/06 01:13:040B / 32B / 25B

JavaScript _

RankUserSizeTimeDateStatistics
1letter520.55362007/08/21 18:21:010B / 25B / 27B
2ozy4dm590.05002007/08/17 10:11:170B / 19B / 40B
3AtoMa670.03852007/08/17 07:08:480B / 35B / 32B

Lua _

RankUserSizeTimeDateStatistics
1letter710.03662007/08/28 00:28:500B / 43B / 25B
2rickrickrick720.03462007/08/31 19:27:040B / 43B / 26B

Tcl _

RankUserSizeTimeDateStatistics
1unau900.07982007/08/24 19:32:030B / 46B / 30B
2user1200.10432007/08/24 17:48:030B / ?B / ?B
3murky-satyr770.06902008/07/08 01:24:240B / 42B / 24B

Xtal _

RankUserSizeTimeDateStatistics
1ozy4dm560.13362007/08/20 13:14:500B / 26B / 30B
2eban630.12572007/08/20 14:47:100B / 33B / 30B
3kt3k640.12532007/08/27 23:17:420B / 32B / 32B
4teebee(ozy4dm)550.03282011/12/31 05:19:290B / 25B / 30B

REXX _

RankUserSizeTimeDateStatistics
1pooq480.04072012/04/12 23:54:570B / 28B / 15B

PARI/GP _

RankUserSizeTimeDateStatistics
1teebee(pooq)470.01672012/05/07 08:32:180B / 26B / 21B
2pooq490.07912012/05/07 00:04:420B / 26B / 23B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr770.18882008/07/13 12:40:240B / 34B / 41B

Prolog _

RankUserSizeTimeDateStatistics
1yooskeh750.10352007/08/22 17:38:420B / 36B / 38B
2yooskeh670.51182007/11/26 15:08:260B / 34B / 32B

Forth _

RankUserSizeTimeDateStatistics
151b810.19922007/08/18 10:53:220B / 36B / 18B
251b720.18422007/11/10 21:37:310B / 30B / 18B

BASIC _

RankUserSizeTimeDateStatistics
1poop580.09392007/08/18 17:11:440B / 30B / 25B
2pooq680.08852007/08/18 16:02:350B / 36B / 28B
3poop530.10612007/08/28 19:03:140B / 30B / 21B

Erlang _

RankUserSizeTimeDateStatistics
1pooq1140.11332012/08/22 22:31:040B / 62B / 48B
251b1170.30292007/12/10 17:02:520B / 63B / 48B

J _

RankUserSizeTimeDateStatistics
1poop650.18982007/08/21 23:17:150B / 17B / 47B
2I., S.(embed)420.02482011/10/31 06:41:040B / 10B / 31B
3medialuna1240.01572014/08/16 23:29:570B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
1letter600.03372007/08/20 00:44:560B / 29B / 31B
2kurimura620.03052007/08/17 12:31:290B / 31B / 31B
3ozy4dm630.01652007/08/15 00:23:440B / 26B / 37B
4Ki640.03082007/08/17 01:19:420B / 33B / 31B
5shinh640.03042007/08/18 05:11:350B / 31B / 33B
6Robert650.02982007/08/14 19:27:210B / 32B / 33B
7gaus650.01452007/08/16 21:57:440B / 31B / 34B
851b650.03072007/08/18 15:48:150B / 31B / 34B
9niha660.03052007/08/18 05:11:470B / 33B / 33B
10hinoe660.03572007/08/27 00:34:470B / 33B / 33B
11sadakiyo770.03002007/08/15 05:21:100B / ?B / ?B
12sadakiyo750.00022018/09/07 14:52:430B / ?B / ?B

C++ _

RankUserSizeTimeDateStatistics
1letter780.04972007/08/21 18:20:460B / 41B / 35B
2j.hzr910.04522007/08/21 16:45:370B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
1letter690.04932007/08/21 18:32:330B / 35B / 31B
2kurimura720.02912007/08/18 20:56:490B / 38B / 31B
351b740.04832007/08/24 17:02:190B / 39B / 32B
4kurimura680.02652007/08/28 20:27:350B / 36B / 29B

OCaml _

RankUserSizeTimeDateStatistics
1letter660.09012007/08/27 01:06:400B / 43B / 19B
2ksk660.09572007/08/27 22:43:140B / 43B / 19B
3kozima700.10322007/08/26 13:52:340B / 45B / 21B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa790.02452007/08/15 15:59:150B / ?B / ?B
2moriA820.04102007/08/17 06:31:500B / 46B / 34B
3kurimura850.02612007/08/15 00:28:460B / 50B / 29B

Java _

RankUserSizeTimeDateStatistics
1letter1180.40082007/08/21 18:26:250B / 73B / 40B
2teebee820.12492010/11/07 06:24:090B / ?B / ?B

Pascal _

RankUserSizeTimeDateStatistics
1uru780.00022009/02/02 23:45:530B / 48B / 25B
2pooq780.00022009/02/03 00:08:000B / 48B / 25B

Maxima _

RankUserSizeTimeDateStatistics
1pooq620.30892009/08/09 13:22:080B / 33B / 28B

Octave _

RankUserSizeTimeDateStatistics
1pooq520.20262011/10/21 08:20:560B / 27B / 25B

REBOL _

RankUserSizeTimeDateStatistics
1pooq800.08982009/02/15 16:37:400B / 46B / 22B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee660.11902011/12/19 06:44:510B / 35B / 30B
2teebee(pooq)730.12792011/12/19 06:25:310B / 40B / 32B
3pooq811.09992009/03/27 12:13:180B / 46B / 34B

AWK _

RankUserSizeTimeDateStatistics
1letter480.02982007/08/28 00:35:010B / 24B / 24B
2unau510.02842007/08/28 08:59:060B / 25B / 25B
3eban570.04032007/08/27 22:24:330B / 30B / 27B

sed _

RankUserSizeTimeDateStatistics
1tails1120.01262018/09/13 10:45:520B / 36B / 66B
2emoken1800.01142008/02/10 23:35:370B / 80B / 84B

Bash _

RankUserSizeTimeDateStatistics
1unau640.14822007/08/24 18:16:160B / 37B / 22B
2eban430.07322007/08/31 15:09:200B / 19B / 22B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails430.00012018/09/13 15:02:550B / 20B / 21B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)530.30982007/08/15 05:13:1022B / 20B / 11B
2ySas550.34162007/08/14 20:08:2222B / 22B / 11B
3yshl810.30182007/08/18 10:38:150B / 53B / 14B
4ySas490.31112007/08/28 20:31:5120B / 19B / 9B
5zzo38(yshl)740.07802021/12/28 03:12:590B / 43B / 20B

R _

RankUserSizeTimeDateStatistics
1pooq631.30932008/04/19 17:58:490B / 29B / 31B
251b651.34992008/04/05 22:08:440B / 29B / 33B
3NikNakk810.15382014/07/07 02:14:310B / ?B / ?B

Brainfuck _

RankUserSizeTimeDateStatistics
1nuko(cheat)8960.00092008/01/31 04:21:421B / ?B / ?B
2tabasa44550.02442007/10/02 11:56:350B / 0B / 4455B

Befunge _

RankUserSizeTimeDateStatistics
1Mark Byers530.01402007/08/15 07:59:010B / 12B / 40B

GolfScript _

RankUserSizeTimeDateStatistics
1narb350.06412010/09/04 22:06:150B / ?B / ?B
2flagitious360.18982008/01/02 00:57:050B / 15B / 19B

gs2 _

RankUserSizeTimeDateStatistics
1tails250.06742018/09/13 11:59:0710B / 9B / 6B
2whio350.08492017/01/20 07:38:5717B / 11B / 7B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu350.25922010/11/10 21:03:110B / ?B / ?B

Unlambda _

RankUserSizeTimeDateStatistics
1irori7290.00982007/08/16 23:40:500B / 349B / 380B
2kozima9060.05622007/08/27 15:15:490B / 318B / 588B
3irori7050.01232008/03/15 17:07:490B / 337B / 368B

D-compile-time _

RankUserSizeTimeDateStatistics
151b1500.93992008/03/19 20:00:050B / 93B / 50B

DOS _

RankUserSizeTimeDateStatistics
1chocobi771.44992008/11/23 03:59:5655B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1pla650.07842008/11/24 07:28:366B / 51B / 8B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr410.20982008/07/28 23:59:380B / 14B / 27B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr613.37012008/03/10 03:08:310B / 34B / 25B

Scala _

RankUserSizeTimeDateStatistics
1pooq583.58672011/02/20 17:21:050B / 32B / 22B

Logo _

RankUserSizeTimeDateStatistics
1teebee590.01662011/03/21 17:22:210B / 31B / 20B
2pooq800.00592011/03/20 10:13:430B / 42B / 28B

Language Ranking_

RankLangUserSizeScore
1gs2tails2510000
2GolfScriptnarb357142
3FlogScriptmilieu357142
4gorubymurky-satyr416097
5JI., S.(embed)425952
6Perltybalt89435813
7Basheban435813
8Bash (builtins)tails435813
9PARI/GPteebee(pooq)475319
10AWKletter485208
11REXXpooq485208
12RubyMark Byers495102
13PostscriptySas495102
14JavaScriptletter524807
15PHPletter524807
16Octavepooq524807
17BefungeMark Byers534716
18BASICpoop534716
19Xtalteebee(ozy4dm)554545
20PythonMark Byers564464
21Iomurky-satyr574385
22Scalapooq584310
23Logoteebee594237
24Cletter604166
25Arcmurky-satyr604166
26Groovymurky-satyr614098
27Maximapooq624032
28Rpooq633968
29Vimpla653846
30OCamlletter663787
31Asymptoteteebee663787
32Prologyooskeh673731
33Dkurimura683676
34Lualetter713521
35Forth51b723472
36Tclmurky-satyr773246
37Smalltalkmurky-satyr773246
38DOSchocobi773246
39C++letter783205
40Schememurky-satyr783205
41Pascaluru783205
42Haskellnotogawa793164
43REBOLpooq803125
44Common LISPkozima813086
45Javateebee823048
46sedtails1122232
47Erlangpooq1142192
48D-compile-time51b1501666
49Unlambdairori705354
50Python3user_1895279
51Brainfucknuko(cheat)896279

Referer

Note that, they may contain spoilers.

return to the top page