結果
| 問題 | No.1109 調の判定 |
| コンテスト | |
| ユーザー |
gin
|
| 提出日時 | 2020-07-10 21:33:10 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 156 ms / 2,000 ms |
| コード長 | 331 bytes |
| 記録 | |
| コンパイル時間 | 535 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-27 15:06:18 |
| 合計ジャッジ時間 | 8,603 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
N = int(input())
T = list(map(int,input().split()))
cnt = 0
ans = -1
for i in range(12):
d = [i%12, (i+2)%12, (i+4)%12, (i+5)%12, (i+7)%12, (i+9)%12, (i+11)%12]
f = True
for t in T:
if t not in d:
f = False
if f:
cnt += 1
ans = i
if cnt == 1:
print(ans)
else:
print(-1)
gin