結果

問題 No.1109 調の判定
ユーザー tikitaka1201tikitaka1201
提出日時 2020-07-11 11:23:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 82,112 KB
実行使用メモリ 53,556 KB
最終ジャッジ日時 2024-04-20 22:06:05
合計ジャッジ時間 2,890 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,936 KB
testcase_01 AC 36 ms
53,036 KB
testcase_02 AC 35 ms
52,820 KB
testcase_03 AC 35 ms
52,828 KB
testcase_04 AC 35 ms
52,056 KB
testcase_05 AC 34 ms
52,196 KB
testcase_06 AC 33 ms
51,688 KB
testcase_07 AC 33 ms
53,116 KB
testcase_08 AC 39 ms
53,056 KB
testcase_09 AC 36 ms
52,992 KB
testcase_10 AC 36 ms
51,812 KB
testcase_11 AC 39 ms
52,436 KB
testcase_12 AC 38 ms
52,968 KB
testcase_13 AC 35 ms
52,976 KB
testcase_14 AC 34 ms
51,820 KB
testcase_15 AC 35 ms
53,156 KB
testcase_16 AC 33 ms
53,124 KB
testcase_17 AC 34 ms
52,148 KB
testcase_18 AC 35 ms
52,364 KB
testcase_19 AC 33 ms
53,556 KB
testcase_20 AC 33 ms
52,960 KB
testcase_21 AC 33 ms
51,680 KB
testcase_22 AC 34 ms
52,904 KB
testcase_23 AC 35 ms
52,768 KB
testcase_24 AC 34 ms
52,296 KB
testcase_25 AC 32 ms
51,964 KB
testcase_26 AC 33 ms
52,632 KB
testcase_27 AC 32 ms
52,156 KB
testcase_28 AC 35 ms
52,484 KB
testcase_29 AC 34 ms
52,224 KB
testcase_30 AC 35 ms
52,272 KB
testcase_31 AC 35 ms
52,976 KB
testcase_32 AC 34 ms
51,904 KB
testcase_33 AC 35 ms
53,012 KB
testcase_34 AC 36 ms
52,140 KB
testcase_35 AC 33 ms
52,136 KB
testcase_36 AC 35 ms
52,156 KB
testcase_37 AC 34 ms
52,624 KB
testcase_38 AC 33 ms
52,028 KB
testcase_39 AC 34 ms
52,312 KB
testcase_40 AC 34 ms
52,268 KB
testcase_41 AC 32 ms
52,988 KB
testcase_42 AC 34 ms
52,616 KB
testcase_43 AC 33 ms
51,744 KB
testcase_44 AC 34 ms
51,872 KB
testcase_45 AC 33 ms
52,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
*t,=map(int,input().split())
ans=[]
h=[0,2,4,5,7,9,11]
for i in range(12):
    flg=True
    for j in range(n):
        if (t[j]-i)%12 not in h:
            flg=False
    if flg: ans.append(i)
if len(ans)==1:
    print(ans[0])
else:
    print(-1)
0