結果

問題 No.1183 コイン遊び
ユーザー KeroruKeroru
提出日時 2020-08-22 14:26:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 640 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 369,680 KB
最終ジャッジ日時 2024-04-23 08:47:55
合計ジャッジ時間 15,501 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,712 KB
testcase_01 AC 32 ms
51,712 KB
testcase_02 AC 32 ms
51,584 KB
testcase_03 AC 34 ms
51,328 KB
testcase_04 AC 37 ms
51,584 KB
testcase_05 AC 33 ms
52,224 KB
testcase_06 AC 33 ms
51,712 KB
testcase_07 AC 35 ms
51,328 KB
testcase_08 AC 44 ms
58,368 KB
testcase_09 AC 39 ms
58,496 KB
testcase_10 AC 51 ms
72,704 KB
testcase_11 AC 79 ms
99,840 KB
testcase_12 AC 403 ms
276,308 KB
testcase_13 AC 345 ms
272,808 KB
testcase_14 AC 571 ms
356,144 KB
testcase_15 AC 606 ms
368,884 KB
testcase_16 AC 595 ms
369,420 KB
testcase_17 AC 605 ms
369,420 KB
testcase_18 AC 640 ms
369,292 KB
testcase_19 AC 607 ms
369,468 KB
testcase_20 AC 637 ms
368,916 KB
testcase_21 AC 558 ms
369,168 KB
testcase_22 AC 559 ms
369,552 KB
testcase_23 AC 567 ms
369,164 KB
testcase_24 AC 553 ms
369,552 KB
testcase_25 AC 587 ms
369,680 KB
testcase_26 AC 594 ms
369,552 KB
testcase_27 AC 605 ms
369,164 KB
testcase_28 AC 588 ms
369,292 KB
testcase_29 AC 561 ms
369,424 KB
testcase_30 AC 571 ms
369,488 KB
testcase_31 AC 590 ms
368,912 KB
testcase_32 AC 585 ms
368,912 KB
testcase_33 AC 591 ms
369,044 KB
testcase_34 AC 587 ms
369,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,*t=map(int,open(0).read().split())
d=[a^b for a,b in zip(t,t[n:])]+[0]
print(sum(d[i:i+2]==[1,0]for i in range(n)))
0