結果
| 問題 |
No.1109 調の判定
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2020-07-10 21:25:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 279 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-11 07:38:12 |
| 合計ジャッジ時間 | 2,560 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 40 WA * 3 |
ソースコード
import sys
input = sys.stdin.readline
N=int(input())
T=set(map(int,input().split()))
ANS=[]
for i in range(12):
D=set([i%12,(i+2)%12,(i+4)%12,(i+5)%12,(i+7)%12,(i+9)%12,(i+11)%12])
if T < D:
ANS.append(i)
if len(ANS)==1:
print(ANS[0])
else:
print(-1)
titia