結果
| 問題 |
No.1109 調の判定
|
| コンテスト | |
| ユーザー |
👑 SPD_9X2
|
| 提出日時 | 2020-07-10 21:30:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 81,872 KB |
| 実行使用メモリ | 53,012 KB |
| 最終ジャッジ日時 | 2024-10-11 07:54:02 |
| 合計ジャッジ時間 | 3,397 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 41 WA * 2 |
ソースコード
N = int(input())
T = list(map(int,input().split()))
ans = []
mod = 12
for D in range(13):
flag = True
for t in T:
if t not in [D % mod,(D+2)%mod,(D+4)%mod,(D+5)%mod,(D+7)%mod,(D+9)%mod,(D+11)%mod]:
flag = False
break
if flag:
ans.append(D)
if len(ans) == 1:
print (ans[0])
else:
print (-1)
SPD_9X2