結果

問題 No.2865 Base 10 Subsets 2
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2024-08-30 23:11:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 82,424 KB
実行使用メモリ 54,040 KB
最終ジャッジ日時 2024-08-30 23:11:04
合計ジャッジ時間 1,930 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,072 KB
testcase_01 AC 37 ms
52,760 KB
testcase_02 AC 39 ms
52,404 KB
testcase_03 AC 36 ms
52,244 KB
testcase_04 AC 37 ms
52,396 KB
testcase_05 AC 36 ms
53,688 KB
testcase_06 AC 36 ms
53,200 KB
testcase_07 AC 38 ms
52,032 KB
testcase_08 AC 35 ms
53,220 KB
testcase_09 AC 36 ms
53,416 KB
testcase_10 AC 36 ms
53,424 KB
testcase_11 AC 40 ms
52,516 KB
testcase_12 AC 34 ms
52,504 KB
testcase_13 AC 40 ms
54,040 KB
testcase_14 AC 37 ms
53,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

N,K = map(int,input().split())
K -= 1

Nlis = list(str(N))
Nlis.reverse()

ans = []

dig = 1
for c in Nlis:
    dig = int(c)+1
    ans.append( K % dig )
    K //= dig

ans.reverse()
print (int( "".join(map(str,ans)) ))


0