Two Dice of A sides
Submit
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
Rank | User | Size | Time | Date | Statistics |
---|
1 | Mark Byers | 49 | 0.1090 | 2007/08/15 01:15:23 | 0B / 21B / 28B |
2 | shinh | 49 | 0.1005 | 2007/08/18 04:33:15 | 0B / 22B / 27B |
3 | ksk | 49 | 0.1176 | 2007/08/27 22:55:25 | 0B / 22B / 27B |
4 | flagitious | 49 | 0.1243 | 2007/08/28 07:50:13 | 0B / 19B / 30B |
5 | eban | 49 | 0.1167 | 2007/08/28 11:40:04 | 0B / 18B / 30B |
6 | niha | 51 | 0.1012 | 2007/08/14 17:29:16 | 0B / 22B / 29B |
7 | letter | 51 | 0.1098 | 2007/08/27 08:21:46 | 0B / 24B / 27B |
8 | ozy4dm | 52 | 0.0889 | 2007/08/14 17:21:18 | 0B / 19B / 33B |
9 | AtoMa | 52 | 0.0965 | 2007/08/16 09:15:35 | 0B / ?B / ?B |
10 | kodera | 52 | 0.0957 | 2007/08/21 03:09:04 | 0B / 25B / 27B |
11 | tabasa | 133 | 0.0271 | 2007/10/02 11:54:38 | 7B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tybalt89 | 43 | 0.0491 | 2007/08/17 00:03:50 | 0B / ?B / ?B |
2 | ySas | 43 | 0.0473 | 2007/08/18 08:37:16 | 0B / 14B / 28B |
3 | letter | 44 | 0.0437 | 2007/08/23 23:05:58 | 0B / 17B / 26B |
4 | unau | 44 | 0.0633 | 2007/08/24 20:20:18 | 0B / 21B / 20B |
5 | shinh | 44 | 0.0544 | 2007/08/28 02:04:28 | 0B / 16B / 27B |
6 | ozy4dm | 50 | 0.0419 | 2007/08/15 07:22:51 | 0B / 20B / 29B |
7 | Mark Byers | 52 | 0.0409 | 2007/08/15 21:37:59 | 0B / 23B / 27B |
8 | deq | 53 | 0.0418 | 2007/08/14 22:08:57 | 0B / 24B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Mark Byers | 56 | 0.1183 | 2007/08/15 00:56:11 | 0B / 23B / 33B |
2 | letter | 56 | 0.1260 | 2007/08/24 00:44:11 | 0B / 30B / 26B |
3 | hiro.suzuki  | 58 | 0.1222 | 2007/08/14 21:18:42 | 0B / 31B / 27B |
4 | Defenestrator | 60 | 0.1389 | 2007/08/17 20:53:08 | 0B / 30B / 30B |
5 | kt3k | 60 | 0.1401 | 2007/08/20 14:32:25 | 0B / 30B / 29B |
6 | hirose | 60 | 0.1602 | 2007/08/23 12:47:12 | 0B / 31B / 28B |
7 | zetamatta | 72 | 0.1149 | 2007/08/15 01:19:39 | 0B / 38B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | user_1 | 895 | 0.0455 | 2020/11/29 06:33:57 | 0B / 492B / 305B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 52 | 0.1983 | 2007/08/22 12:52:25 | 0B / 21B / 30B |
2 | unau | 55 | 0.1969 | 2007/08/25 15:20:10 | 0B / 22B / 32B |
3 | ozy4dm | 58 | 0.1891 | 2007/08/17 10:50:35 | 0B / 23B / 34B |
4 | honestnaoko | 73 | 0.1915 | 2007/08/25 14:10:20 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 93 | 0.1275 | 2007/08/24 01:01:26 | 0B / 49B / 36B |
2 | pla | 111 | 0.6354 | 2007/08/17 06:15:31 | 0B / 56B / 49B |
3 | murky-satyr | 78 | 0.0694 | 2008/06/25 03:40:57 | 0B / 36B / 35B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | murky-satyr | 60 | 3.5997 | 2009/10/27 03:34:06 | 0B / 31B / 23B |
2 | pooq | 62 | 3.5312 | 2009/10/07 00:57:31 | 0B / 29B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | poop | 77 | 1.6115 | 2007/08/18 23:35:20 | 0B / 42B / 34B |
2 | murky-satyr | 57 | 0.8695 | 2008/08/06 01:13:04 | 0B / 32B / 25B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 52 | 0.5536 | 2007/08/21 18:21:01 | 0B / 25B / 27B |
2 | ozy4dm | 59 | 0.0500 | 2007/08/17 10:11:17 | 0B / 19B / 40B |
3 | AtoMa | 67 | 0.0385 | 2007/08/17 07:08:48 | 0B / 35B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | unau | 90 | 0.0798 | 2007/08/24 19:32:03 | 0B / 46B / 30B |
2 | user | 120 | 0.1043 | 2007/08/24 17:48:03 | 0B / ?B / ?B |
3 | murky-satyr | 77 | 0.0690 | 2008/07/08 01:24:24 | 0B / 42B / 24B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | ozy4dm | 56 | 0.1336 | 2007/08/20 13:14:50 | 0B / 26B / 30B |
2 | eban | 63 | 0.1257 | 2007/08/20 14:47:10 | 0B / 33B / 30B |
3 | kt3k | 64 | 0.1253 | 2007/08/27 23:17:42 | 0B / 32B / 32B |
4 | teebee(ozy4dm) | 55 | 0.0328 | 2011/12/31 05:19:29 | 0B / 25B / 30B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 48 | 0.0407 | 2012/04/12 23:54:57 | 0B / 28B / 15B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee(pooq) | 47 | 0.0167 | 2012/05/07 08:32:18 | 0B / 26B / 21B |
2 | pooq | 49 | 0.0791 | 2012/05/07 00:04:42 | 0B / 26B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | yooskeh | 75 | 0.1035 | 2007/08/22 17:38:42 | 0B / 36B / 38B |
2 | yooskeh | 67 | 0.5118 | 2007/11/26 15:08:26 | 0B / 34B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 51b | 81 | 0.1992 | 2007/08/18 10:53:22 | 0B / 36B / 18B |
2 | 51b | 72 | 0.1842 | 2007/11/10 21:37:31 | 0B / 30B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | poop | 58 | 0.0939 | 2007/08/18 17:11:44 | 0B / 30B / 25B |
2 | pooq | 68 | 0.0885 | 2007/08/18 16:02:35 | 0B / 36B / 28B |
3 | poop | 53 | 0.1061 | 2007/08/28 19:03:14 | 0B / 30B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 114 | 0.1133 | 2012/08/22 22:31:04 | 0B / 62B / 48B |
2 | 51b | 117 | 0.3029 | 2007/12/10 17:02:52 | 0B / 63B / 48B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | poop | 65 | 0.1898 | 2007/08/21 23:17:15 | 0B / 17B / 47B |
2 | I., S.(embed) | 42 | 0.0248 | 2011/10/31 06:41:04 | 0B / 10B / 31B |
3 | medialuna | 124 | 0.0157 | 2014/08/16 23:29:57 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 60 | 0.0337 | 2007/08/20 00:44:56 | 0B / 29B / 31B |
2 | kurimura | 62 | 0.0305 | 2007/08/17 12:31:29 | 0B / 31B / 31B |
3 | ozy4dm | 63 | 0.0165 | 2007/08/15 00:23:44 | 0B / 26B / 37B |
4 | Ki | 64 | 0.0308 | 2007/08/17 01:19:42 | 0B / 33B / 31B |
5 | shinh | 64 | 0.0304 | 2007/08/18 05:11:35 | 0B / 31B / 33B |
6 | Robert | 65 | 0.0298 | 2007/08/14 19:27:21 | 0B / 32B / 33B |
7 | gaus | 65 | 0.0145 | 2007/08/16 21:57:44 | 0B / 31B / 34B |
8 | 51b | 65 | 0.0307 | 2007/08/18 15:48:15 | 0B / 31B / 34B |
9 | niha | 66 | 0.0305 | 2007/08/18 05:11:47 | 0B / 33B / 33B |
10 | hinoe | 66 | 0.0357 | 2007/08/27 00:34:47 | 0B / 33B / 33B |
11 | sadakiyo | 77 | 0.0300 | 2007/08/15 05:21:10 | 0B / ?B / ?B |
12 | sadakiyo | 75 | 0.0002 | 2018/09/07 14:52:43 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 78 | 0.0497 | 2007/08/21 18:20:46 | 0B / 41B / 35B |
2 | j.hzr | 91 | 0.0452 | 2007/08/21 16:45:37 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 69 | 0.0493 | 2007/08/21 18:32:33 | 0B / 35B / 31B |
2 | kurimura | 72 | 0.0291 | 2007/08/18 20:56:49 | 0B / 38B / 31B |
3 | 51b | 74 | 0.0483 | 2007/08/24 17:02:19 | 0B / 39B / 32B |
4 | kurimura | 68 | 0.0265 | 2007/08/28 20:27:35 | 0B / 36B / 29B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 66 | 0.0901 | 2007/08/27 01:06:40 | 0B / 43B / 19B |
2 | ksk | 66 | 0.0957 | 2007/08/27 22:43:14 | 0B / 43B / 19B |
3 | kozima | 70 | 0.1032 | 2007/08/26 13:52:34 | 0B / 45B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | notogawa | 79 | 0.0245 | 2007/08/15 15:59:15 | 0B / ?B / ?B |
2 | moriA | 82 | 0.0410 | 2007/08/17 06:31:50 | 0B / 46B / 34B |
3 | kurimura | 85 | 0.0261 | 2007/08/15 00:28:46 | 0B / 50B / 29B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 118 | 0.4008 | 2007/08/21 18:26:25 | 0B / 73B / 40B |
2 | teebee | 82 | 0.1249 | 2010/11/07 06:24:09 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | uru | 78 | 0.0002 | 2009/02/02 23:45:53 | 0B / 48B / 25B |
2 | pooq | 78 | 0.0002 | 2009/02/03 00:08:00 | 0B / 48B / 25B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 62 | 0.3089 | 2009/08/09 13:22:08 | 0B / 33B / 28B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 52 | 0.2026 | 2011/10/21 08:20:56 | 0B / 27B / 25B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 80 | 0.0898 | 2009/02/15 16:37:40 | 0B / 46B / 22B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 66 | 0.1190 | 2011/12/19 06:44:51 | 0B / 35B / 30B |
2 | teebee(pooq) | 73 | 0.1279 | 2011/12/19 06:25:31 | 0B / 40B / 32B |
3 | pooq | 81 | 1.0999 | 2009/03/27 12:13:18 | 0B / 46B / 34B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | letter | 48 | 0.0298 | 2007/08/28 00:35:01 | 0B / 24B / 24B |
2 | unau | 51 | 0.0284 | 2007/08/28 08:59:06 | 0B / 25B / 25B |
3 | eban | 57 | 0.0403 | 2007/08/27 22:24:33 | 0B / 30B / 27B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 112 | 0.0126 | 2018/09/13 10:45:52 | 0B / 36B / 66B |
2 | emoken | 180 | 0.0114 | 2008/02/10 23:35:37 | 0B / 80B / 84B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | unau | 64 | 0.1482 | 2007/08/24 18:16:16 | 0B / 37B / 22B |
2 | eban | 43 | 0.0732 | 2007/08/31 15:09:20 | 0B / 19B / 22B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 43 | 0.0001 | 2018/09/13 15:02:55 | 0B / 20B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | yshl(bin) | 53 | 0.3098 | 2007/08/15 05:13:10 | 22B / 20B / 11B |
2 | ySas | 55 | 0.3416 | 2007/08/14 20:08:22 | 22B / 22B / 11B |
3 | yshl | 81 | 0.3018 | 2007/08/18 10:38:15 | 0B / 53B / 14B |
4 | ySas | 49 | 0.3111 | 2007/08/28 20:31:51 | 20B / 19B / 9B |
5 | zzo38(yshl) | 74 | 0.0780 | 2021/12/28 03:12:59 | 0B / 43B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 63 | 1.3093 | 2008/04/19 17:58:49 | 0B / 29B / 31B |
2 | 51b | 65 | 1.3499 | 2008/04/05 22:08:44 | 0B / 29B / 33B |
3 | NikNakk | 81 | 0.1538 | 2014/07/07 02:14:31 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | narb | 35 | 0.0641 | 2010/09/04 22:06:15 | 0B / ?B / ?B |
2 | flagitious | 36 | 0.1898 | 2008/01/02 00:57:05 | 0B / 15B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 25 | 0.0674 | 2018/09/13 11:59:07 | 10B / 9B / 6B |
2 | whio | 35 | 0.0849 | 2017/01/20 07:38:57 | 17B / 11B / 7B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | irori | 729 | 0.0098 | 2007/08/16 23:40:50 | 0B / 349B / 380B |
2 | kozima | 906 | 0.0562 | 2007/08/27 15:15:49 | 0B / 318B / 588B |
3 | irori | 705 | 0.0123 | 2008/03/15 17:07:49 | 0B / 337B / 368B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 51b | 150 | 0.9399 | 2008/03/19 20:00:05 | 0B / 93B / 50B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pla | 65 | 0.0784 | 2008/11/24 07:28:36 | 6B / 51B / 8B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 58 | 3.5867 | 2011/02/20 17:21:05 | 0B / 32B / 22B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 59 | 0.0166 | 2011/03/21 17:22:21 | 0B / 31B / 20B |
2 | pooq | 80 | 0.0059 | 2011/03/20 10:13:43 | 0B / 42B / 28B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | tails | 25 | 10000 |
2 | GolfScript | narb | 35 | 7142 |
3 | FlogScript | milieu | 35 | 7142 |
4 | goruby | murky-satyr | 41 | 6097 |
5 | J | I., S.(embed) | 42 | 5952 |
6 | Perl | tybalt89 | 43 | 5813 |
7 | Bash | eban | 43 | 5813 |
8 | Bash (builtins) | tails | 43 | 5813 |
9 | PARI/GP | teebee(pooq) | 47 | 5319 |
10 | AWK | letter | 48 | 5208 |
11 | REXX | pooq | 48 | 5208 |
12 | Ruby | Mark Byers | 49 | 5102 |
13 | Postscript | ySas | 49 | 5102 |
14 | JavaScript | letter | 52 | 4807 |
15 | PHP | letter | 52 | 4807 |
16 | Octave | pooq | 52 | 4807 |
17 | Befunge | Mark Byers | 53 | 4716 |
18 | BASIC | poop | 53 | 4716 |
19 | Xtal | teebee(ozy4dm) | 55 | 4545 |
20 | Python | Mark Byers | 56 | 4464 |
21 | Io | murky-satyr | 57 | 4385 |
22 | Scala | pooq | 58 | 4310 |
23 | Logo | teebee | 59 | 4237 |
24 | C | letter | 60 | 4166 |
25 | Arc | murky-satyr | 60 | 4166 |
26 | Groovy | murky-satyr | 61 | 4098 |
27 | Maxima | pooq | 62 | 4032 |
28 | R | pooq | 63 | 3968 |
29 | Vim | pla | 65 | 3846 |
30 | OCaml | letter | 66 | 3787 |
31 | Asymptote | teebee | 66 | 3787 |
32 | Prolog | yooskeh | 67 | 3731 |
33 | D | kurimura | 68 | 3676 |
34 | Lua | letter | 71 | 3521 |
35 | Forth | 51b | 72 | 3472 |
36 | Tcl | murky-satyr | 77 | 3246 |
37 | Smalltalk | murky-satyr | 77 | 3246 |
38 | DOS | chocobi | 77 | 3246 |
39 | C++ | letter | 78 | 3205 |
40 | Scheme | murky-satyr | 78 | 3205 |
41 | Pascal | uru | 78 | 3205 |
42 | Haskell | notogawa | 79 | 3164 |
43 | REBOL | pooq | 80 | 3125 |
44 | Common LISP | kozima | 81 | 3086 |
45 | Java | teebee | 82 | 3048 |
46 | sed | tails | 112 | 2232 |
47 | Erlang | pooq | 114 | 2192 |
48 | D-compile-time | 51b | 150 | 1666 |
49 | Unlambda | irori | 705 | 354 |
50 | Python3 | user_1 | 895 | 279 |
51 | Brainfuck | nuko(cheat) | 896 | 279 |
Referer
Note that, they may contain spoilers.
return to the top page