結果

問題 No.1109 調の判定
ユーザー sasa8uyauya
提出日時 2025-07-20 13:46:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 482 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 53,908 KB
最終ジャッジ日時 2025-07-20 13:46:46
合計ジャッジ時間 4,258 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
t=list(map(int,input().split()))
a=[]
for i in range(12):
  f=1
  f&=i in t
  f&=all((i+j)%12 not in t for j in [1,3,6,8,10])
  if f:
    a+=[i]
print(a[0] if len(a)==1 else -1)
0