結果

問題 No.1183 コイン遊び
ユーザー ytftytft
提出日時 2022-03-21 13:50:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 354 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 82,388 KB
実行使用メモリ 276,312 KB
最終ジャッジ日時 2024-04-17 06:53:53
合計ジャッジ時間 11,446 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,968 KB
testcase_01 AC 40 ms
52,224 KB
testcase_02 AC 37 ms
52,096 KB
testcase_03 AC 36 ms
51,968 KB
testcase_04 AC 36 ms
52,096 KB
testcase_05 AC 38 ms
51,840 KB
testcase_06 AC 37 ms
52,096 KB
testcase_07 AC 36 ms
52,224 KB
testcase_08 AC 42 ms
59,264 KB
testcase_09 AC 42 ms
59,264 KB
testcase_10 AC 48 ms
67,840 KB
testcase_11 AC 63 ms
83,712 KB
testcase_12 AC 258 ms
202,960 KB
testcase_13 AC 224 ms
190,220 KB
testcase_14 AC 318 ms
252,464 KB
testcase_15 AC 338 ms
276,164 KB
testcase_16 AC 338 ms
276,188 KB
testcase_17 AC 340 ms
275,936 KB
testcase_18 AC 354 ms
275,936 KB
testcase_19 AC 344 ms
276,064 KB
testcase_20 AC 342 ms
276,060 KB
testcase_21 AC 347 ms
275,936 KB
testcase_22 AC 347 ms
276,012 KB
testcase_23 AC 344 ms
275,932 KB
testcase_24 AC 352 ms
276,064 KB
testcase_25 AC 352 ms
275,932 KB
testcase_26 AC 346 ms
276,196 KB
testcase_27 AC 346 ms
276,188 KB
testcase_28 AC 343 ms
275,932 KB
testcase_29 AC 345 ms
276,060 KB
testcase_30 AC 350 ms
275,924 KB
testcase_31 AC 349 ms
276,016 KB
testcase_32 AC 341 ms
276,068 KB
testcase_33 AC 342 ms
276,312 KB
testcase_34 AC 347 ms
276,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,math
input=lambda:sys.stdin.readline().rstrip()
N=int(input())
A=[list(map(int,input().split())) for i in range(2)]
for j in range(2):
	for i in range(N-1,0,-1):
		A[j][i]^=A[j][i-1]
print((sum([A[0][i]^A[1][i] for i in range(N)])+1)//2)
0