結果
| 問題 |
No.1109 調の判定
|
| コンテスト | |
| ユーザー |
mationaruzou
|
| 提出日時 | 2020-07-10 21:38:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 389 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-11 08:21:33 |
| 合計ジャッジ時間 | 2,836 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
A = [0, 2, 4, 5, 7, 9, 11]
N = int(input())
T = list(map(int, input().split()))
l = []
for i in range(12):
B = []
for j in A:
c = (i+j) % 12
B.append(c)
flag = 1
for t in T:
if t in B:
continue
else:
flag = 0
break
if flag == 1:
l.append(i)
if len(l) == 1:
print(*l)
else:
print(-1)
mationaruzou