結果

問題 No.1109 調の判定
ユーザー ttrttr
提出日時 2020-08-05 19:09:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 11,972 KB
実行使用メモリ 10,176 KB
最終ジャッジ日時 2023-10-17 10:50:48
合計ジャッジ時間 3,894 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,168 KB
testcase_01 AC 29 ms
10,168 KB
testcase_02 AC 30 ms
10,168 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 29 ms
10,168 KB
testcase_07 AC 29 ms
10,168 KB
testcase_08 AC 29 ms
10,168 KB
testcase_09 AC 29 ms
10,168 KB
testcase_10 AC 30 ms
10,168 KB
testcase_11 AC 29 ms
10,168 KB
testcase_12 AC 29 ms
10,168 KB
testcase_13 AC 30 ms
10,168 KB
testcase_14 AC 29 ms
10,168 KB
testcase_15 AC 29 ms
10,168 KB
testcase_16 AC 29 ms
10,168 KB
testcase_17 AC 29 ms
10,168 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 30 ms
10,168 KB
testcase_27 AC 29 ms
10,168 KB
testcase_28 WA -
testcase_29 AC 29 ms
10,168 KB
testcase_30 AC 30 ms
10,168 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 29 ms
10,168 KB
testcase_36 AC 28 ms
10,168 KB
testcase_37 AC 29 ms
10,168 KB
testcase_38 AC 29 ms
10,168 KB
testcase_39 AC 30 ms
10,168 KB
testcase_40 AC 29 ms
10,168 KB
testcase_41 AC 29 ms
10,168 KB
testcase_42 AC 29 ms
10,168 KB
testcase_43 AC 29 ms
10,168 KB
testcase_44 AC 28 ms
10,168 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
T = [int(t) for t in input().split()]

ans = -1
for i in range(12):
    L = [i, i+2, i+4, i+5, i+7, i+11]
    for j in range(len(L)):
        L[j] %= 12
    flag = True
    for t in T:
        if not t in L:
            flag = False
            break
    if flag:
        ans = i
        break

print(ans)
0