結果
問題 |
No.1109 調の判定
|
ユーザー |
![]() |
提出日時 | 2020-08-05 19:09:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-17 09:11:52 |
合計ジャッジ時間 | 2,891 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 17 |
ソースコード
N = int(input()) T = [int(t) for t in input().split()] ans = -1 for i in range(12): L = [i, i+2, i+4, i+5, i+7, i+11] for j in range(len(L)): L[j] %= 12 flag = True for t in T: if not t in L: flag = False break if flag: ans = i break print(ans)