結果
問題 | No.747 循環小数N桁目 Hard |
ユーザー |
![]() |
提出日時 | 2018-10-19 21:53:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 121 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,632 KB |
最終ジャッジ日時 | 2024-11-18 20:26:45 |
合計ジャッジ時間 | 54,518 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 TLE * 1 |
other | AC * 11 RE * 94 TLE * 15 |
ソースコード
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])