結果

問題 No.1183 コイン遊び
ユーザー tyawanmusityawanmusi
提出日時 2020-08-22 16:58:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 778 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 44,676 KB
最終ジャッジ日時 2024-04-23 11:04:37
合計ジャッジ時間 18,975 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,880 KB
testcase_01 AC 32 ms
10,752 KB
testcase_02 AC 33 ms
10,752 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 AC 31 ms
10,752 KB
testcase_05 AC 30 ms
10,624 KB
testcase_06 AC 29 ms
10,752 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 AC 31 ms
10,752 KB
testcase_09 AC 30 ms
10,880 KB
testcase_10 AC 45 ms
11,392 KB
testcase_11 AC 75 ms
12,864 KB
testcase_12 AC 486 ms
31,528 KB
testcase_13 AC 436 ms
29,260 KB
testcase_14 AC 705 ms
41,800 KB
testcase_15 AC 750 ms
43,808 KB
testcase_16 AC 770 ms
43,960 KB
testcase_17 AC 752 ms
44,584 KB
testcase_18 AC 758 ms
44,548 KB
testcase_19 AC 762 ms
44,504 KB
testcase_20 AC 767 ms
43,876 KB
testcase_21 AC 688 ms
43,912 KB
testcase_22 AC 685 ms
43,868 KB
testcase_23 AC 698 ms
43,924 KB
testcase_24 AC 707 ms
43,952 KB
testcase_25 AC 752 ms
44,384 KB
testcase_26 AC 762 ms
43,860 KB
testcase_27 AC 750 ms
44,520 KB
testcase_28 AC 760 ms
43,920 KB
testcase_29 AC 687 ms
44,356 KB
testcase_30 AC 777 ms
43,996 KB
testcase_31 AC 773 ms
44,676 KB
testcase_32 AC 760 ms
43,984 KB
testcase_33 AC 778 ms
43,876 KB
testcase_34 AC 755 ms
43,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
c=[0]+[a[i]^b[i] for i in range(n)]+[0]
ans=0
for i in range(1,n+2):
  if c[i-1]!=c[i]:ans+=1
print(0--ans//2)
0