結果

問題 No.1109 調の判定
ユーザー 👑 H20H20
提出日時 2022-01-26 22:56:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 350 bytes
コンパイル時間 367 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 71,940 KB
最終ジャッジ日時 2023-08-25 11:45:42
合計ジャッジ時間 6,358 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
71,940 KB
testcase_01 AC 86 ms
71,724 KB
testcase_02 AC 90 ms
71,644 KB
testcase_03 AC 92 ms
71,764 KB
testcase_04 AC 94 ms
71,712 KB
testcase_05 AC 94 ms
71,648 KB
testcase_06 AC 92 ms
71,456 KB
testcase_07 AC 89 ms
71,720 KB
testcase_08 AC 93 ms
71,940 KB
testcase_09 AC 89 ms
71,608 KB
testcase_10 AC 86 ms
71,724 KB
testcase_11 AC 87 ms
71,724 KB
testcase_12 AC 86 ms
71,884 KB
testcase_13 AC 87 ms
71,640 KB
testcase_14 AC 85 ms
71,436 KB
testcase_15 AC 85 ms
71,728 KB
testcase_16 AC 88 ms
71,664 KB
testcase_17 AC 88 ms
71,644 KB
testcase_18 AC 88 ms
71,448 KB
testcase_19 AC 87 ms
71,636 KB
testcase_20 AC 88 ms
71,556 KB
testcase_21 AC 88 ms
71,856 KB
testcase_22 AC 87 ms
71,596 KB
testcase_23 AC 88 ms
71,444 KB
testcase_24 AC 88 ms
71,556 KB
testcase_25 AC 89 ms
71,860 KB
testcase_26 AC 88 ms
71,724 KB
testcase_27 AC 87 ms
71,652 KB
testcase_28 AC 89 ms
71,552 KB
testcase_29 AC 85 ms
71,600 KB
testcase_30 AC 85 ms
71,600 KB
testcase_31 AC 86 ms
71,600 KB
testcase_32 AC 87 ms
71,880 KB
testcase_33 AC 85 ms
71,636 KB
testcase_34 AC 87 ms
71,728 KB
testcase_35 AC 88 ms
71,592 KB
testcase_36 AC 88 ms
71,724 KB
testcase_37 AC 88 ms
71,764 KB
testcase_38 AC 87 ms
71,424 KB
testcase_39 AC 84 ms
71,808 KB
testcase_40 AC 86 ms
71,636 KB
testcase_41 AC 88 ms
71,596 KB
testcase_42 AC 88 ms
71,772 KB
testcase_43 AC 92 ms
71,724 KB
testcase_44 AC 90 ms
71,784 KB
testcase_45 AC 85 ms
71,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = int(input())
T = list(map(int, input().split())) 
CT = collections.Counter(T)
L = [0,2,4,5,7,9,11]
ans = -1
for i in range(12):
    D = []
    for l in L:
        D.append((i+l)%12)
    if not(CT - collections.Counter(D)):
        if ans==-1:
            ans=i
        else:
            print(-1)
            exit()
print(ans)
0