結果

問題 No.1109 調の判定
ユーザー Maeda, KazuyaMaeda, Kazuya
提出日時 2020-07-10 21:43:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 54,036 KB
最終ジャッジ日時 2024-04-19 16:32:39
合計ジャッジ時間 3,143 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,248 KB
testcase_01 AC 34 ms
52,688 KB
testcase_02 WA -
testcase_03 AC 33 ms
51,956 KB
testcase_04 AC 33 ms
52,996 KB
testcase_05 AC 33 ms
52,284 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 32 ms
52,128 KB
testcase_09 AC 33 ms
52,724 KB
testcase_10 AC 36 ms
53,164 KB
testcase_11 AC 33 ms
52,816 KB
testcase_12 AC 33 ms
51,816 KB
testcase_13 AC 34 ms
52,556 KB
testcase_14 AC 33 ms
52,952 KB
testcase_15 AC 34 ms
53,196 KB
testcase_16 AC 33 ms
52,860 KB
testcase_17 AC 32 ms
52,676 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 31 ms
52,836 KB
testcase_27 AC 32 ms
53,376 KB
testcase_28 WA -
testcase_29 AC 32 ms
52,636 KB
testcase_30 AC 33 ms
52,520 KB
testcase_31 WA -
testcase_32 AC 33 ms
52,740 KB
testcase_33 WA -
testcase_34 AC 33 ms
53,204 KB
testcase_35 AC 34 ms
52,948 KB
testcase_36 AC 34 ms
51,876 KB
testcase_37 AC 34 ms
53,620 KB
testcase_38 AC 34 ms
53,996 KB
testcase_39 AC 35 ms
53,636 KB
testcase_40 AC 34 ms
52,072 KB
testcase_41 AC 35 ms
52,468 KB
testcase_42 WA -
testcase_43 AC 35 ms
52,620 KB
testcase_44 AC 34 ms
52,592 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for d in range(12):
    # flag = False
    if all(sound in [d, (d+2) % 12, (d+4)%12, (d+5)%12, (d+7)%12, (d+9)%12, (d+11)%12] for sound in t):
        print(d)
        exit()

print(-1)
0