結果
問題 |
No.1109 調の判定
|
ユーザー |
|
提出日時 | 2020-07-11 11:23:33 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 177 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-10-12 20:23:36 |
合計ジャッジ時間 | 3,191 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 43 |
ソースコード
n=int(input()) *t,=map(int,input().split()) ans=[] h=[0,2,4,5,7,9,11] for i in range(12): flg=True for j in range(n): if (t[j]-i)%12 not in h: flg=False if flg: ans.append(i) if len(ans)==1: print(ans[0]) else: print(-1)