結果
問題 | No.747 循環小数N桁目 Hard |
ユーザー |
![]() |
提出日時 | 2018-10-19 23:02:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 526 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-10-12 05:34:07 |
合計ジャッジ時間 | 7,092 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 29 RE * 91 |
ソースコード
N = int(input())K = int(input())a = [4,2,8,5,7,1]b = N % 6if b == 2:if K % 2:print(a[2])else:print(a[4])elif b == 4:print(a[4])elif b == 3:print(a[3])elif b == 5:if K % 2:print(a[5])else:print(a[1])else:print(a[b])