結果
問題 | No.747 循環小数N桁目 Hard |
ユーザー |
👑 |
提出日時 | 2023-04-21 23:22:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 80 ms / 2,000 ms |
コード長 | 155 bytes |
コンパイル時間 | 231 ms |
コンパイル使用メモリ | 82,128 KB |
実行使用メモリ | 71,544 KB |
最終ジャッジ日時 | 2024-11-06 16:45:23 |
合計ジャッジ時間 | 9,919 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 120 |
ソースコード
import sys sys.set_int_max_str_digits(10 ** 9) from math import gcd n = int(input()) k = int(input()) x = pow(n, k, 6) x -= 1 x %= 6 print("285714"[x])