結果

問題 No.747 循環小数N桁目 Hard
ユーザー 👑 Kazun
提出日時 2023-04-21 22:47:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 82,300 KB
実行使用メモリ 71,660 KB
最終ジャッジ日時 2024-11-06 16:16:53
合計ジャッジ時間 9,902 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 120
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.set_int_max_str_digits(500000)

def solve():
    N=int(input())
    K=int(input())
    return "428571"[pow(N,K,6)]

#==================================================
print(solve())
0