結果
問題 |
No.1109 調の判定
|
ユーザー |
|
提出日時 | 2020-12-10 01:09:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-19 07:34:25 |
合計ジャッジ時間 | 2,450 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 43 |
ソースコード
D=[[d,(d+2)%12,(d+4)%12,(d+5)%12,(d+7)%12,(d+9)%12,(d+11)%12] for d in range(12)] n=int(input()) l=list(map(int,input().split())) a=-1 for x in D: print(x[0],[i in x for i in l]) if sum([i in x for i in l])==n: if a==-1: a=x[0] else: a=-1; break print(a)