結果
| 問題 |
No.747 循環小数N桁目 Hard
|
| コンテスト | |
| ユーザー |
prd_xxx
|
| 提出日時 | 2018-10-19 22:23:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 187 bytes |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-10-12 05:26:17 |
| 合計ジャッジ時間 | 6,745 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 35 RE * 85 |
ソースコード
N = int(input())
K = input()
mod6 = N%6
if mod6 == 2:
if int(K[-1])%2==0:
mod6 = 4
elif mod6 == 5:
if int(K[-1])%2==0:
mod6 = 1
S = '285714'
print(S[(mod6-1)%6])
prd_xxx