結果
| 問題 | No.467 隠されていたゲーム |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-01-07 02:35:21 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-14 13:18:12 |
| 合計ジャッジ時間 | 3,923 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 15 WA * 9 |
ソースコード
n=int(input())
D=list(map(int,input().split()))
x,y=map(int,input().split())
MAX=max(D)
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 in D:
print(ANS)
else:
print(ANS+1)
titia