結果
問題 | No.747 循環小数N桁目 Hard |
ユーザー |
![]() |
提出日時 | 2018-10-22 12:46:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 411 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-12 06:45:26 |
合計ジャッジ時間 | 6,582 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 29 RE * 91 |
ソースコード
# -*- coding: utf-8 -*- from sys import stdin n = int(stdin.readline().rstrip()) k = int(stdin.readline().rstrip()) tei = n % 6 if tei == 0: print("4") elif tei == 1: print("2") elif tei == 2: if k % 2 == 1: print("8") else: print("7") elif tei == 3: print("5") elif tei == 4: print("7") elif tei == 5: if k % 2 == 1: print("1") else: print("2")