結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,444 KB
testcase_01 AC 37 ms
53,148 KB
testcase_02 AC 37 ms
51,904 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 38 ms
52,000 KB
testcase_07 AC 37 ms
51,828 KB
testcase_08 AC 46 ms
52,188 KB
testcase_09 AC 38 ms
53,044 KB
testcase_10 AC 38 ms
52,620 KB
testcase_11 AC 41 ms
53,184 KB
testcase_12 AC 37 ms
52,028 KB
testcase_13 AC 37 ms
52,000 KB
testcase_14 AC 37 ms
52,324 KB
testcase_15 AC 37 ms
52,068 KB
testcase_16 AC 37 ms
52,660 KB
testcase_17 AC 37 ms
53,044 KB
testcase_18 WA -
testcase_19 AC 40 ms
52,364 KB
testcase_20 AC 37 ms
53,748 KB
testcase_21 AC 39 ms
53,680 KB
testcase_22 AC 38 ms
53,368 KB
testcase_23 AC 37 ms
52,820 KB
testcase_24 AC 36 ms
52,428 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 = abs(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