結果

問題 No.1109 調の判定
ユーザー NoaSaberNoaSaber
提出日時 2021-04-06 21:20:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 71,444 KB
最終ジャッジ日時 2023-09-02 12:42:46
合計ジャッジ時間 5,661 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,160 KB
testcase_01 AC 77 ms
71,416 KB
testcase_02 AC 79 ms
71,192 KB
testcase_03 AC 83 ms
71,160 KB
testcase_04 AC 76 ms
71,112 KB
testcase_05 AC 75 ms
71,248 KB
testcase_06 AC 75 ms
71,224 KB
testcase_07 AC 76 ms
71,344 KB
testcase_08 AC 75 ms
71,400 KB
testcase_09 AC 76 ms
71,116 KB
testcase_10 AC 75 ms
71,416 KB
testcase_11 AC 76 ms
71,444 KB
testcase_12 AC 73 ms
71,444 KB
testcase_13 AC 74 ms
71,256 KB
testcase_14 AC 76 ms
71,336 KB
testcase_15 AC 74 ms
71,404 KB
testcase_16 AC 75 ms
71,108 KB
testcase_17 AC 77 ms
71,268 KB
testcase_18 AC 74 ms
71,168 KB
testcase_19 AC 76 ms
70,876 KB
testcase_20 AC 76 ms
71,376 KB
testcase_21 AC 76 ms
71,228 KB
testcase_22 AC 75 ms
71,012 KB
testcase_23 AC 76 ms
71,420 KB
testcase_24 AC 75 ms
71,144 KB
testcase_25 AC 74 ms
71,328 KB
testcase_26 AC 76 ms
71,128 KB
testcase_27 AC 77 ms
71,060 KB
testcase_28 AC 76 ms
71,280 KB
testcase_29 AC 76 ms
71,336 KB
testcase_30 AC 77 ms
71,228 KB
testcase_31 AC 77 ms
71,320 KB
testcase_32 AC 77 ms
71,056 KB
testcase_33 AC 77 ms
71,332 KB
testcase_34 AC 77 ms
71,192 KB
testcase_35 AC 77 ms
71,052 KB
testcase_36 AC 77 ms
71,384 KB
testcase_37 AC 77 ms
71,388 KB
testcase_38 AC 77 ms
71,116 KB
testcase_39 AC 78 ms
71,340 KB
testcase_40 AC 75 ms
71,168 KB
testcase_41 AC 77 ms
71,384 KB
testcase_42 AC 76 ms
71,140 KB
testcase_43 AC 76 ms
71,336 KB
testcase_44 AC 78 ms
71,200 KB
testcase_45 AC 76 ms
71,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
T=list(map(int,input().split()))
X=[0,2,4,5,7,9,11]
l=[]
for i in range(0,12):
    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