結果

問題 No.1183 コイン遊び
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2020-08-22 13:05:02
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 411 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 273,088 KB
最終ジャッジ日時 2023-08-05 09:46:50
合計ジャッジ時間 12,414 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
71,304 KB
testcase_01 AC 79 ms
70,996 KB
testcase_02 AC 82 ms
71,168 KB
testcase_03 AC 78 ms
71,316 KB
testcase_04 AC 82 ms
71,460 KB
testcase_05 AC 80 ms
71,036 KB
testcase_06 AC 77 ms
71,420 KB
testcase_07 AC 75 ms
71,188 KB
testcase_08 AC 84 ms
75,660 KB
testcase_09 AC 83 ms
75,624 KB
testcase_10 AC 88 ms
77,744 KB
testcase_11 AC 101 ms
89,860 KB
testcase_12 AC 283 ms
200,228 KB
testcase_13 AC 284 ms
188,284 KB
testcase_14 AC 394 ms
246,640 KB
testcase_15 AC 411 ms
272,804 KB
testcase_16 AC 395 ms
272,576 KB
testcase_17 AC 393 ms
272,640 KB
testcase_18 AC 395 ms
272,636 KB
testcase_19 AC 386 ms
272,656 KB
testcase_20 AC 393 ms
272,588 KB
testcase_21 AC 376 ms
272,552 KB
testcase_22 AC 378 ms
272,592 KB
testcase_23 AC 368 ms
272,704 KB
testcase_24 AC 373 ms
273,088 KB
testcase_25 AC 384 ms
272,920 KB
testcase_26 AC 379 ms
272,684 KB
testcase_27 AC 385 ms
272,696 KB
testcase_28 AC 385 ms
272,720 KB
testcase_29 AC 374 ms
272,660 KB
testcase_30 AC 371 ms
272,612 KB
testcase_31 AC 382 ms
272,604 KB
testcase_32 AC 384 ms
272,436 KB
testcase_33 AC 382 ms
272,512 KB
testcase_34 AC 382 ms
272,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

N = int(stdin.readline())

A = list(map(int,stdin.readline().split()))
B = list(map(int,stdin.readline().split()))

ans = 0
now = 0
for i in range(N):

    if A[i] ^ B[i] == 1:
       if now == 0:
           now = 1
           ans += 1
    else:
        now = 0

print (ans)
0