結果

問題 No.1109 調の判定
ユーザー NoaSaberNoaSaber
提出日時 2021-04-06 21:17:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 71,644 KB
最終ジャッジ日時 2023-09-02 12:40:49
合計ジャッジ時間 6,230 ms
ジャッジサーバーID
(参考情報)
judge16 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,448 KB
testcase_01 AC 77 ms
71,336 KB
testcase_02 AC 76 ms
71,340 KB
testcase_03 AC 75 ms
71,432 KB
testcase_04 AC 73 ms
71,492 KB
testcase_05 AC 74 ms
71,316 KB
testcase_06 AC 73 ms
71,200 KB
testcase_07 AC 72 ms
71,388 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 74 ms
71,524 KB
testcase_11 AC 73 ms
71,296 KB
testcase_12 AC 73 ms
71,144 KB
testcase_13 AC 74 ms
71,340 KB
testcase_14 AC 73 ms
71,356 KB
testcase_15 AC 74 ms
71,528 KB
testcase_16 AC 74 ms
71,388 KB
testcase_17 AC 73 ms
71,236 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 74 ms
71,284 KB
testcase_24 AC 73 ms
71,336 KB
testcase_25 AC 73 ms
71,400 KB
testcase_26 AC 73 ms
71,644 KB
testcase_27 AC 73 ms
71,560 KB
testcase_28 AC 75 ms
71,400 KB
testcase_29 AC 74 ms
71,560 KB
testcase_30 AC 74 ms
71,452 KB
testcase_31 AC 73 ms
71,368 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 74 ms
71,448 KB
testcase_36 AC 74 ms
71,344 KB
testcase_37 AC 74 ms
71,200 KB
testcase_38 AC 74 ms
71,388 KB
testcase_39 AC 71 ms
71,392 KB
testcase_40 AC 73 ms
71,196 KB
testcase_41 AC 74 ms
71,508 KB
testcase_42 WA -
testcase_43 AC 72 ms
71,408 KB
testcase_44 AC 72 ms
71,628 KB
testcase_45 AC 75 ms
71,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
T=list(map(int,input().split()))
X=[0,2,4,5,7,9,11]
l=[]
for i in T:
    sw=0
    for j in T:
        if (j-i)%12 in X:
            pass
        else:
            sw=1
            break
    if sw==0:
        l.append(i)
if len(l)==1:
    print(l[0])
else:
    print(-1)
0