結果
| 問題 |
No.467 隠されていたゲーム
|
| コンテスト | |
| ユーザー |
Mr.Fuku
|
| 提出日時 | 2018-07-21 12:00:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 329 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-26 04:39:38 |
| 合計ジャッジ時間 | 2,024 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 1 |
ソースコード
import math
n = int(input())
step = [i for i in list(map(int,input().split()))]
goal = list(map(int,input().split()))
max_s = max(step)
max_g = max(abs(goal[0]),abs(goal[1]))
ans = 2
if max_s<=max_g:
ans = math.ceil(max_g/max_s)
else:
for i in step:
if i==max_g:
ans = 1
break
print(ans)
Mr.Fuku