結果

問題 No.1987 Sandglass Inconvenience
ユーザー EguyEguy
提出日時 2022-06-24 21:29:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 545 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 54,188 KB
最終ジャッジ日時 2024-04-26 04:41:15
合計ジャッジ時間 1,900 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,452 KB
testcase_01 AC 42 ms
52,832 KB
testcase_02 AC 38 ms
53,336 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 41 ms
52,932 KB
testcase_07 AC 39 ms
52,380 KB
testcase_08 AC 39 ms
53,940 KB
testcase_09 AC 38 ms
52,504 KB
testcase_10 AC 38 ms
52,628 KB
testcase_11 AC 37 ms
53,860 KB
testcase_12 AC 38 ms
52,676 KB
testcase_13 AC 36 ms
52,264 KB
testcase_14 AC 38 ms
53,540 KB
testcase_15 AC 39 ms
54,188 KB
testcase_16 AC 39 ms
52,808 KB
testcase_17 AC 39 ms
53,480 KB
testcase_18 WA -
testcase_19 AC 38 ms
52,780 KB
testcase_20 AC 37 ms
53,084 KB
testcase_21 AC 38 ms
52,852 KB
testcase_22 AC 38 ms
52,588 KB
testcase_23 AC 38 ms
53,216 KB
testcase_24 AC 38 ms
53,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, math
sys.setrecursionlimit(1000000)
INF = 1 << 100
mod = 1000000007
#mod = 998244353
input = lambda: sys.stdin.readline().rstrip()
li = lambda: list(map(int, input().split()))

A = li()
X = int(input())
ans = 'No'
for i in range(1 << 3):
    a = 0
    for j in range(3):
        if (i >> j) & 1:
            a += A[j]
    for x in range(1 << 3):
        b = 0
        for y in range(3):
            if (x >> y) & 1:
                b += A[y]
        dif = a - b
        if dif > 0 and X % dif == 0:
            ans = 'Yes'
print(ans)
0