結果

問題 No.1987 Sandglass Inconvenience
ユーザー pitPpitP
提出日時 2022-06-24 21:47:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,556 KB
実行使用メモリ 53,536 KB
最終ジャッジ日時 2024-04-26 05:00:42
合計ジャッジ時間 1,860 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,340 KB
testcase_01 AC 35 ms
52,364 KB
testcase_02 AC 34 ms
52,576 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 36 ms
52,660 KB
testcase_07 AC 36 ms
52,028 KB
testcase_08 AC 37 ms
52,072 KB
testcase_09 AC 37 ms
53,244 KB
testcase_10 AC 37 ms
52,920 KB
testcase_11 AC 37 ms
52,488 KB
testcase_12 AC 37 ms
53,008 KB
testcase_13 AC 37 ms
53,328 KB
testcase_14 AC 37 ms
52,416 KB
testcase_15 AC 36 ms
53,432 KB
testcase_16 AC 36 ms
52,580 KB
testcase_17 AC 36 ms
52,552 KB
testcase_18 WA -
testcase_19 AC 35 ms
52,368 KB
testcase_20 AC 36 ms
53,240 KB
testcase_21 AC 37 ms
52,396 KB
testcase_22 AC 36 ms
52,376 KB
testcase_23 AC 37 ms
52,508 KB
testcase_24 AC 36 ms
53,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
x = int(input())

num = set()
for i in range(-1,2,1):
    for j in range(-1,2,1):
        for k in range(-1,2,1):
            tmp = a * i + b * j + c * k
            if tmp > 0:
                num.add(tmp)

boo = False
for tmp in num:
    if x%tmp == 0:
        boo = True

print("Yes" if boo else "No")
0