結果

問題 No.1183 コイン遊び
ユーザー kit84kit84
提出日時 2020-08-22 13:08:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 626 ms / 2,000 ms
コード長 702 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 47,132 KB
最終ジャッジ日時 2024-04-23 07:27:50
合計ジャッジ時間 15,992 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
11,136 KB
testcase_01 AC 33 ms
11,264 KB
testcase_02 AC 34 ms
11,264 KB
testcase_03 AC 34 ms
11,136 KB
testcase_04 AC 33 ms
11,264 KB
testcase_05 AC 34 ms
11,136 KB
testcase_06 AC 33 ms
11,264 KB
testcase_07 AC 33 ms
11,264 KB
testcase_08 AC 34 ms
11,136 KB
testcase_09 AC 34 ms
11,264 KB
testcase_10 AC 46 ms
11,776 KB
testcase_11 AC 71 ms
13,160 KB
testcase_12 AC 399 ms
33,300 KB
testcase_13 AC 364 ms
30,784 KB
testcase_14 AC 581 ms
44,044 KB
testcase_15 AC 616 ms
46,472 KB
testcase_16 AC 626 ms
46,324 KB
testcase_17 AC 617 ms
46,356 KB
testcase_18 AC 614 ms
46,360 KB
testcase_19 AC 623 ms
46,288 KB
testcase_20 AC 618 ms
46,288 KB
testcase_21 AC 589 ms
46,392 KB
testcase_22 AC 578 ms
46,320 KB
testcase_23 AC 577 ms
46,232 KB
testcase_24 AC 604 ms
46,376 KB
testcase_25 AC 618 ms
46,292 KB
testcase_26 AC 611 ms
46,928 KB
testcase_27 AC 615 ms
46,228 KB
testcase_28 AC 620 ms
46,356 KB
testcase_29 AC 586 ms
46,276 KB
testcase_30 AC 617 ms
47,132 KB
testcase_31 AC 617 ms
46,344 KB
testcase_32 AC 612 ms
46,292 KB
testcase_33 AC 614 ms
46,216 KB
testcase_34 AC 618 ms
46,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
enum = enumerate
inf = 1001001001

import collections
import random

def linput(ty=int, cvt=list):
	return cvt(map(ty,input().split()))

def gcd(a: int, b: int):
	while b: a, b = b, a%b
	return a

def lcm(a: int, b: int):
	return a * b // gcd(a, b)

def dist(x1,y1,x2,y2):
	return abs(x1-x2)+abs(y1-y2)

def ran():
	vRan = [random.randint(1,5) for i in range(8)]
	return vRan

def bye(res):
	sT = "No Yes".split()
	print(sT[res])
	#exit(0)

def main():
	N, = linput()
	vA = linput()
	vB = linput()
	
	vC = [1,]
	vC += [a==b for a,b in zip(vA,vB)]
	res = 0
	for p,c in zip(vC,vC[1:]):
		if (p,c)==(1,0):
			res += 1
	print(res)


if __name__ == "__main__":
	main()
0