結果
| 問題 |
No.467 隠されていたゲーム
|
| ユーザー |
titia
|
| 提出日時 | 2024-01-07 02:37:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-27 19:19:51 |
| 合計ジャッジ時間 | 1,846 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
n=int(input())
D=list(map(int,input().split()))
x,y=map(int,input().split())
MAX=max(D)
x=abs(x)
y=abs(y)
if x==y==0:
print(0)
exit()
if max(x,y)<MAX:
if max(x,y) in D:
print(1)
else:
print(2)
exit()
ANS=max(x,y)//MAX
r=max(x,y)%MAX
if r==0:
print(ANS)
else:
print(ANS+1)
titia