結果

問題 No.467 隠されていたゲーム
ユーザー titiatitia
提出日時 2024-01-07 02:35:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2024-01-07 02:36:01
合計ジャッジ時間 1,827 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,856 KB
testcase_01 AC 27 ms
9,856 KB
testcase_02 AC 27 ms
9,856 KB
testcase_03 AC 27 ms
9,856 KB
testcase_04 AC 27 ms
9,856 KB
testcase_05 AC 27 ms
9,856 KB
testcase_06 AC 27 ms
9,856 KB
testcase_07 WA -
testcase_08 AC 27 ms
9,856 KB
testcase_09 AC 27 ms
9,856 KB
testcase_10 AC 27 ms
9,856 KB
testcase_11 AC 28 ms
9,856 KB
testcase_12 AC 28 ms
9,856 KB
testcase_13 AC 27 ms
9,856 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 27 ms
9,856 KB
testcase_18 AC 26 ms
9,856 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 27 ms
9,856 KB
testcase_23 AC 30 ms
9,856 KB
testcase_24 AC 27 ms
9,856 KB
testcase_25 AC 27 ms
9,856 KB
testcase_26 AC 27 ms
9,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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==0 or r in D:
    print(ANS)
else:
    print(ANS+1)
0