結果

問題 No.1109 調の判定
ユーザー brthyyjpbrthyyjp
提出日時 2020-07-10 21:27:06
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 71,496 KB
最終ジャッジ日時 2023-08-01 16:14:35
合計ジャッジ時間 5,246 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,168 KB
testcase_01 AC 67 ms
71,272 KB
testcase_02 AC 65 ms
71,068 KB
testcase_03 AC 67 ms
71,096 KB
testcase_04 AC 65 ms
71,148 KB
testcase_05 AC 64 ms
71,252 KB
testcase_06 AC 65 ms
71,148 KB
testcase_07 AC 64 ms
71,160 KB
testcase_08 AC 66 ms
71,184 KB
testcase_09 AC 65 ms
71,120 KB
testcase_10 AC 66 ms
71,092 KB
testcase_11 AC 64 ms
70,912 KB
testcase_12 AC 63 ms
70,984 KB
testcase_13 AC 63 ms
71,100 KB
testcase_14 AC 63 ms
71,272 KB
testcase_15 AC 64 ms
71,144 KB
testcase_16 AC 66 ms
71,372 KB
testcase_17 AC 65 ms
71,240 KB
testcase_18 AC 66 ms
70,916 KB
testcase_19 AC 66 ms
71,152 KB
testcase_20 AC 66 ms
71,212 KB
testcase_21 AC 65 ms
71,288 KB
testcase_22 AC 67 ms
71,216 KB
testcase_23 AC 65 ms
71,356 KB
testcase_24 AC 64 ms
71,148 KB
testcase_25 AC 64 ms
71,120 KB
testcase_26 AC 67 ms
71,076 KB
testcase_27 AC 65 ms
71,276 KB
testcase_28 AC 65 ms
71,096 KB
testcase_29 AC 65 ms
71,144 KB
testcase_30 AC 69 ms
71,104 KB
testcase_31 AC 68 ms
71,060 KB
testcase_32 AC 64 ms
71,316 KB
testcase_33 AC 64 ms
71,032 KB
testcase_34 AC 63 ms
71,144 KB
testcase_35 AC 65 ms
71,096 KB
testcase_36 AC 66 ms
71,148 KB
testcase_37 AC 70 ms
71,100 KB
testcase_38 AC 70 ms
71,240 KB
testcase_39 AC 67 ms
71,188 KB
testcase_40 AC 67 ms
71,104 KB
testcase_41 AC 66 ms
71,144 KB
testcase_42 AC 67 ms
71,148 KB
testcase_43 AC 67 ms
71,496 KB
testcase_44 AC 66 ms
71,152 KB
testcase_45 AC 66 ms
71,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
T = list(map(int, input().split()))

ans = []
for d in range(12):
    temp = [d, d+2, d+4, d+5, d+7, d+9, d+11]
    temp = [s%12 for s in temp]
    temp = set(temp)
    for t in T:
        if t not in temp:
            break
    else:
        ans.append(d)
if len(ans) == 1:
    print(ans[0])
else:
    print(-1)
0