結果

問題 No.1109 調の判定
ユーザー zaki_chemtechzaki_chemtech
提出日時 2020-07-13 14:53:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 424 bytes
コンパイル時間 1,441 ms
コンパイル使用メモリ 86,684 KB
実行使用メモリ 71,656 KB
最終ジャッジ日時 2023-08-07 13:11:00
合計ジャッジ時間 6,008 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 72 ms
71,424 KB
testcase_02 AC 70 ms
71,460 KB
testcase_03 AC 71 ms
71,444 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 70 ms
71,268 KB
testcase_07 AC 70 ms
71,284 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 71 ms
71,328 KB
testcase_11 AC 71 ms
71,160 KB
testcase_12 AC 71 ms
71,404 KB
testcase_13 AC 71 ms
71,284 KB
testcase_14 AC 71 ms
71,316 KB
testcase_15 AC 70 ms
71,168 KB
testcase_16 AC 69 ms
71,172 KB
testcase_17 AC 70 ms
71,556 KB
testcase_18 AC 71 ms
71,536 KB
testcase_19 AC 71 ms
71,420 KB
testcase_20 AC 71 ms
71,284 KB
testcase_21 AC 72 ms
71,404 KB
testcase_22 AC 70 ms
71,392 KB
testcase_23 AC 71 ms
71,384 KB
testcase_24 AC 72 ms
71,404 KB
testcase_25 AC 72 ms
71,584 KB
testcase_26 AC 71 ms
71,632 KB
testcase_27 WA -
testcase_28 AC 70 ms
71,368 KB
testcase_29 AC 71 ms
71,340 KB
testcase_30 AC 72 ms
71,284 KB
testcase_31 AC 71 ms
71,160 KB
testcase_32 WA -
testcase_33 AC 70 ms
71,560 KB
testcase_34 WA -
testcase_35 AC 72 ms
71,372 KB
testcase_36 AC 72 ms
71,288 KB
testcase_37 AC 72 ms
71,156 KB
testcase_38 AC 71 ms
71,372 KB
testcase_39 AC 72 ms
71,420 KB
testcase_40 AC 71 ms
71,444 KB
testcase_41 WA -
testcase_42 AC 71 ms
71,656 KB
testcase_43 AC 72 ms
71,224 KB
testcase_44 AC 71 ms
71,172 KB
testcase_45 AC 72 ms
71,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

check = [0, 2, 4, 5, 7, 9, 11]

n=int(input())

t = list(map(int,input().split()))

flag_ans = False
for i in range(12):
    flag_ok = True
    for j in t:
        if (i+j)%12 not in check:
            flag_ok = False
            break
    if flag_ok:
        if flag_ans:
            print(-1)
            exit()
        else:
            flag_ans = True
            ans = i

if flag_ans:
    print(ans)
else:
    print(-1)
0