結果
| 問題 |
No.1109 調の判定
|
| コンテスト | |
| ユーザー |
gin
|
| 提出日時 | 2020-07-10 21:33:10 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-11 08:01:44 |
| 合計ジャッジ時間 | 2,714 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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