結果
| 問題 | No.747 循環小数N桁目 Hard |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2018-10-19 21:53:28 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 121 bytes |
| 記録 | |
| コンパイル時間 | 526 ms |
| コンパイル使用メモリ | 20,588 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-05-13 07:10:45 |
| 合計ジャッジ時間 | 5,100 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | -- * 120 |
ソースコード
N = int(input())
K = int(input())
n = 1 if K == 0 else N
for _ in range(K-1):
n = (n * (N % 6)) % 6
print('285714'[n-1])
compass19