結果

問題 No.1183 コイン遊び
ユーザー mkawa2mkawa2
提出日時 2020-08-22 13:12:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 754 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 38,188 KB
最終ジャッジ日時 2024-04-23 07:33:41
合計ジャッジ時間 17,799 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,624 KB
testcase_01 AC 33 ms
10,624 KB
testcase_02 AC 33 ms
10,880 KB
testcase_03 AC 31 ms
10,624 KB
testcase_04 AC 31 ms
10,624 KB
testcase_05 AC 31 ms
10,752 KB
testcase_06 AC 30 ms
10,624 KB
testcase_07 AC 31 ms
10,752 KB
testcase_08 AC 31 ms
10,752 KB
testcase_09 AC 31 ms
10,752 KB
testcase_10 AC 44 ms
11,264 KB
testcase_11 AC 73 ms
12,360 KB
testcase_12 AC 460 ms
27,720 KB
testcase_13 AC 404 ms
25,912 KB
testcase_14 AC 657 ms
36,292 KB
testcase_15 AC 701 ms
38,188 KB
testcase_16 AC 712 ms
38,024 KB
testcase_17 AC 701 ms
38,148 KB
testcase_18 AC 703 ms
37,952 KB
testcase_19 AC 699 ms
38,020 KB
testcase_20 AC 707 ms
38,088 KB
testcase_21 AC 575 ms
38,016 KB
testcase_22 AC 587 ms
38,020 KB
testcase_23 AC 754 ms
38,076 KB
testcase_24 AC 585 ms
37,944 KB
testcase_25 AC 715 ms
38,076 KB
testcase_26 AC 709 ms
38,076 KB
testcase_27 AC 708 ms
38,076 KB
testcase_28 AC 707 ms
38,084 KB
testcase_29 AC 573 ms
38,016 KB
testcase_30 AC 724 ms
38,076 KB
testcase_31 AC 720 ms
38,076 KB
testcase_32 AC 701 ms
38,076 KB
testcase_33 AC 712 ms
38,020 KB
testcase_34 AC 709 ms
38,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))

n=II()
aa=LI()+[0]
bb=LI()+[0]
ans=0
for i in range(n):
    if aa[i]!=bb[i] and aa[i+1]==bb[i+1]:ans+=1
print(ans)
0