結果

問題 No.747 循環小数N桁目 Hard
ユーザー twkmath
提出日時 2018-10-21 11:22:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 121 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-12 05:28:54
合計ジャッジ時間 6,526 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 29 RE * 91
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())%6;k=int(input())%2
d={1:2,2:8,3:5,4:7,5:1,0:4}
if (n==2 or n==5) and k==0: print(d[6-n])
else: print(d[n])
0