fork download
  1. import java.math.BigInteger;
  2. import java.util.Scanner;
  3.  
  4. //mevius.5ch.net/test/read.cgi/tech/1480579110/l50
  5. //手抜きver
  6. class Q9_909
  7. {
  8. public static void main(String[] args)
  9. {
  10. try (Scanner in = new Scanner(System.in))
  11. {
  12. BigInteger bi = in.nextBigInteger(in.nextInt());
  13. for (int i = 2; i <= 36; i++)
  14. System.out.printf("%d#%s%n", i, bi.toString(i));
  15. }
  16. }
  17. }
  18.  
Success #stdin #stdout 0.13s 30688KB
stdin
16 deadbabe
stdout
2#11011110101011011011101010111110
3#100122100210210001200
4#3132223123222332
5#30122344134421
6#1414413520330
7#161402600604
8#33653335276
9#10570723050
10#3735927486
11#1647919685
12#8831a30a6
13#476cc28a5
14#276253874
15#16ceb1726
16#deadbabe
17#91d36cc6
18#61f27270
19#437f24b8
20#2i79aie6
21#21bff6ii
22#1akk149g
23#125a42hj
24#jd49956
25#f7do8ob
26#c2b8boi
27#9h9ll1i
28#7l225hi
29#6842o9l
30#53m7kg6
31#46f9hir
32#3farelu
33#2tf7mor
34#2e7m366
35#214kbpb
36#1ps9w3i