結果

問題 No.467 隠されていたゲーム
ユーザー NoneNone
提出日時 2021-03-26 00:57:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 495 ms
コンパイル使用メモリ 87,324 KB
実行使用メモリ 71,460 KB
最終ジャッジ日時 2023-08-18 07:02:54
合計ジャッジ時間 3,899 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,976 KB
testcase_01 AC 72 ms
71,328 KB
testcase_02 AC 73 ms
71,288 KB
testcase_03 AC 74 ms
71,132 KB
testcase_04 AC 73 ms
71,000 KB
testcase_05 AC 72 ms
71,328 KB
testcase_06 AC 74 ms
71,352 KB
testcase_07 AC 73 ms
71,048 KB
testcase_08 AC 73 ms
71,048 KB
testcase_09 AC 73 ms
71,108 KB
testcase_10 AC 72 ms
71,340 KB
testcase_11 AC 74 ms
71,460 KB
testcase_12 AC 72 ms
70,976 KB
testcase_13 AC 73 ms
70,844 KB
testcase_14 AC 73 ms
71,084 KB
testcase_15 AC 72 ms
70,948 KB
testcase_16 AC 72 ms
71,176 KB
testcase_17 AC 72 ms
71,076 KB
testcase_18 AC 73 ms
71,160 KB
testcase_19 AC 72 ms
71,128 KB
testcase_20 AC 73 ms
71,428 KB
testcase_21 AC 73 ms
71,440 KB
testcase_22 AC 73 ms
71,012 KB
testcase_23 AC 73 ms
71,444 KB
testcase_24 AC 72 ms
71,080 KB
testcase_25 AC 73 ms
71,344 KB
testcase_26 AC 74 ms
71,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
D=list(map(int, input().split()))
x,y=map(int, input().split())
x,y=abs(x),abs(y)
if x==y==0:
    print(0)
    exit()
if max(x,y) in D:
    print(1)
    exit()

D.sort()
M=D[-1]
C=max(x,y)
res=max((C+M-1)//M,2)
print(res)
0