結果

問題 No.757 チャンパーノウン定数 (2)
ユーザー nasadigital
提出日時 2018-12-06 11:09:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 241 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-14 02:21:43
合計ジャッジ時間 3,226 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

b = int(raw_input()) 
n = int(raw_input())
digit = 0
total = 0
while True:
    total = (total + 1) * b - 1
    digit += 1
    if n <= total * digit:
        break
    n -= total * digit
num = b ** digit + n / digit
print(str(num)[n % digit])
0