to Radixal Integer

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

Convert each string of digits to <a href='https://esolangs.org/wiki/Radixal!!!!'>Radixal!!!!</a> integer if convertable; to a question mark otherwise.

A valid Radixal!!!! integer shall have a pair of a value and a base;
you need to output the value in decimal to first column,
then base to second column, separating with a space.

<b>How to convert digits to Radixal!!!! integer (may contain my interpretation)</b>
<ol><li>0s only: value 0 with base 0</li>
<li>Consists of 1s only OR 1s and 0s only: not convertable</li>
<li>Otherwise, base: highest digit plus one; value: interpret as such base</li>
</ol>

--鳴神裁4.1号, 2021.08.19 22:47 UTC+9

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

Sample output:

0 0
?
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
?
?
5 3
7 4
9 5
11 6
13 7
15 8
17 9
19 10

Sample input:_

01
23442
4557
9
133
80808
69000
50337
09114
6
20
85
17714
009
04
43799
90
3
4
02166
85829
0099
1
9
514
36
7
5
7917
015
35
2
9050
05140
24170
721
7611
86122
2
867
39847
8005
262
70487
4383
092
95399
7541
63283
56

Sample output:

?
1747 5
2415 8
9 10
31 4
53144 9
69000 10
20703 8
9114 10
6 7
6 3
77 9
8140 8
009 10
04 5
43799 10
90 10
3 4
4 5
783 7
85829 10
99 10
?
9 10
190 6
27 7
7 8
5 6
7917 10
11 6
23 6
2 3
9050 10
1140 6
10360 8
465 8
3977 8
56963 9
2 3
709 9
39847 10
5837 9
142 7
46330 9
3234 9
92 10
95399 10
3937 8
41790 9
41 7

Sample input:_

658
57
195
29
6
46775
5824
833
87
1567
0
8991
3
9473
734
6
68
70
0933
2
290
2122
60876
42672
59
5116
766
13
3162
5377
9
30048
510
28290
35979
457
2
510
87970
8
97
1
11889
47155
51
40
1
5019
0
721

Sample output:

539 9
47 8
195 10
29 10
6 7
19965 8
4315 9
678 9
79 9
887 8
0 0
8991 10
3 4
9473 10
476 8
6 7
62 9
56 8
933 10
2 3
290 10
71 3
40083 9
17850 8
59 10
1777 7
502 8
7 4
1122 7
2815 8
9 10
19727 9
186 6
28290 10
35979 10
303 8
2 3
186 6
87970 10
8 9
97 10
?
11889 10
20077 8
31 6
20 5
?
5019 10
0 0
465 8

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o780.05382021/09/04 00:24:270B / 36B / 38B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o770.18102021/09/04 00:24:110B / 37B / 37B

Java _

RankUserSizeTimeDateStatistics
1rotary-o2180.17722021/09/04 10:42:440B / 124B / 87B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1McBusLuck7430.03802021/08/20 18:14:080B / 482B / 23B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o1307.30512021/09/04 01:00:360B / 73B / 52B

Language Ranking_

RankLangUserSizeScore
1Ruby2rotary-o7710000
2Rubyrotary-o789871
3Scalarotary-o1305923
4Javarotary-o2183532
5Bash (builtins)McBusLuck7431036

return to the top page