結果
問題 |
No.1109 調の判定
|
ユーザー |
|
提出日時 | 2021-09-29 08:40:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 334 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-16 06:23:39 |
合計ジャッジ時間 | 2,787 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 43 |
ソースコード
n = int(input()) t = list(map(int,input().split())) s = [1,0,1,0,1,1,0,1,0,1,0,1] l = [0] * 12 v = [] for i in t: l[i] = 1 print(" l",l) for i in range(12): u = [x*y for (x,y) in zip(l,s)] if u == l: print(str(i).zfill(2),s) v.append(i) s.insert(0,s.pop(-1)) if len(v) == 1: print(v[0]) else: print(-1)