結果

問題 No.467 隠されていたゲーム
ユーザー taba
提出日時 2017-04-03 11:49:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 202 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,692 KB
最終ジャッジ日時 2024-07-08 03:12:00
合計ジャッジ時間 4,022 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 TLE * 1 -- * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
d=list(map(int,input().split()))
t=max(map(abs,map(int,input().split())))
if t==0:
	print(t)
elif t in d:
	print(1)
else:
	d=max(d)
	c=0
	while t>=2*d:
		t-=d
		c+=1
	print(c+[2,1][t==d])
0