結果

問題 No.1109 調の判定
ユーザー cielciel
提出日時 2021-06-05 02:58:53
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 473 bytes
コンパイル時間 2,235 ms
コンパイル使用メモリ 76,416 KB
実行使用メモリ 75,904 KB
最終ジャッジ日時 2024-11-20 17:58:35
合計ジャッジ時間 6,550 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
75,276 KB
testcase_01 AC 69 ms
75,648 KB
testcase_02 AC 70 ms
75,392 KB
testcase_03 AC 69 ms
75,392 KB
testcase_04 AC 68 ms
75,392 KB
testcase_05 AC 71 ms
75,552 KB
testcase_06 AC 69 ms
75,520 KB
testcase_07 AC 70 ms
75,392 KB
testcase_08 AC 71 ms
75,392 KB
testcase_09 AC 70 ms
75,404 KB
testcase_10 AC 67 ms
75,776 KB
testcase_11 AC 68 ms
75,176 KB
testcase_12 AC 70 ms
75,384 KB
testcase_13 AC 73 ms
75,320 KB
testcase_14 AC 70 ms
75,392 KB
testcase_15 AC 70 ms
75,648 KB
testcase_16 AC 70 ms
75,392 KB
testcase_17 AC 69 ms
75,264 KB
testcase_18 AC 69 ms
75,436 KB
testcase_19 AC 71 ms
75,648 KB
testcase_20 AC 73 ms
75,776 KB
testcase_21 AC 73 ms
75,440 KB
testcase_22 AC 77 ms
75,136 KB
testcase_23 AC 67 ms
75,520 KB
testcase_24 AC 72 ms
75,644 KB
testcase_25 AC 69 ms
75,776 KB
testcase_26 AC 71 ms
75,520 KB
testcase_27 AC 69 ms
75,136 KB
testcase_28 AC 70 ms
75,640 KB
testcase_29 AC 69 ms
75,904 KB
testcase_30 AC 70 ms
75,648 KB
testcase_31 AC 72 ms
75,136 KB
testcase_32 AC 70 ms
75,552 KB
testcase_33 AC 69 ms
75,776 KB
testcase_34 AC 69 ms
75,392 KB
testcase_35 AC 71 ms
75,384 KB
testcase_36 AC 73 ms
75,412 KB
testcase_37 AC 71 ms
75,520 KB
testcase_38 AC 72 ms
75,520 KB
testcase_39 AC 70 ms
75,648 KB
testcase_40 AC 71 ms
75,548 KB
testcase_41 AC 70 ms
75,392 KB
testcase_42 AC 72 ms
75,408 KB
testcase_43 AC 70 ms
75,436 KB
testcase_44 AC 71 ms
75,648 KB
testcase_45 AC 71 ms
75,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
#coding:utf-8
#CodeIQ "Detect Music Key"やらCheckiO "Rotate Hole"やらで既出.此方の関数はCheckiOのコピー.
rotate=lambda state,pipe_numbers: [i for i in range(len(state)) if all(state[j%len(state)] or (i+j)%len(state) not in set(pipe_numbers) for j in range(len(state)))]

if __name__=='__main__':
	state=[1,0,1,0,1,1,0,1,0,1,0,1]
	import sys
	r=rotate(state,[int(e) for e in sys.stdin.read().split()[1:]])
	print(r[0] if len(r)==1 else -1)
0