結果

問題 No.1183 コイン遊び
ユーザー anagohirameanagohirame
提出日時 2020-08-22 13:27:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 385 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 390 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 272,952 KB
最終ジャッジ日時 2023-08-05 10:31:19
合計ジャッジ時間 11,756 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,344 KB
testcase_01 AC 72 ms
71,404 KB
testcase_02 AC 75 ms
71,528 KB
testcase_03 AC 72 ms
71,284 KB
testcase_04 AC 73 ms
71,232 KB
testcase_05 AC 73 ms
71,192 KB
testcase_06 AC 73 ms
71,496 KB
testcase_07 AC 73 ms
71,492 KB
testcase_08 AC 76 ms
75,724 KB
testcase_09 AC 77 ms
75,736 KB
testcase_10 AC 84 ms
77,592 KB
testcase_11 AC 98 ms
90,056 KB
testcase_12 AC 277 ms
199,748 KB
testcase_13 AC 250 ms
189,452 KB
testcase_14 AC 335 ms
249,940 KB
testcase_15 AC 372 ms
272,536 KB
testcase_16 AC 372 ms
272,952 KB
testcase_17 AC 381 ms
272,480 KB
testcase_18 AC 373 ms
272,648 KB
testcase_19 AC 370 ms
272,548 KB
testcase_20 AC 385 ms
272,552 KB
testcase_21 AC 358 ms
272,456 KB
testcase_22 AC 355 ms
272,544 KB
testcase_23 AC 363 ms
272,376 KB
testcase_24 AC 364 ms
272,552 KB
testcase_25 AC 379 ms
272,668 KB
testcase_26 AC 372 ms
272,688 KB
testcase_27 AC 375 ms
272,704 KB
testcase_28 AC 381 ms
272,608 KB
testcase_29 AC 356 ms
272,572 KB
testcase_30 AC 363 ms
272,532 KB
testcase_31 AC 383 ms
272,620 KB
testcase_32 AC 384 ms
272,700 KB
testcase_33 AC 384 ms
272,944 KB
testcase_34 AC 381 ms
272,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
ans = 0
tmp = 0
for a, b in zip(A, B):
	if a != b:
		tmp += 1
	else:
		if tmp > 0:
			ans += 1
			tmp = 0
if tmp > 0:
	ans += 1
print(ans)
0