結果

問題 No.1987 Sandglass Inconvenience
ユーザー ShirotsumeShirotsume
提出日時 2022-06-24 23:24:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 365 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 82,272 KB
実行使用メモリ 54,360 KB
最終ジャッジ日時 2024-04-26 06:07:19
合計ジャッジ時間 1,994 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
52,224 KB
testcase_01 AC 45 ms
52,224 KB
testcase_02 AC 38 ms
53,376 KB
testcase_03 AC 41 ms
52,444 KB
testcase_04 AC 37 ms
52,696 KB
testcase_05 AC 40 ms
52,564 KB
testcase_06 AC 38 ms
52,196 KB
testcase_07 AC 39 ms
53,536 KB
testcase_08 AC 40 ms
52,648 KB
testcase_09 AC 38 ms
52,320 KB
testcase_10 AC 40 ms
54,360 KB
testcase_11 AC 39 ms
52,324 KB
testcase_12 AC 39 ms
52,784 KB
testcase_13 AC 39 ms
53,344 KB
testcase_14 AC 37 ms
54,120 KB
testcase_15 AC 40 ms
52,824 KB
testcase_16 AC 40 ms
53,056 KB
testcase_17 AC 39 ms
53,232 KB
testcase_18 AC 39 ms
53,244 KB
testcase_19 AC 40 ms
53,540 KB
testcase_20 AC 40 ms
53,128 KB
testcase_21 AC 40 ms
53,600 KB
testcase_22 AC 38 ms
53,608 KB
testcase_23 AC 37 ms
53,268 KB
testcase_24 AC 39 ms
53,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
INF = 2 ** 63 - 1
mod = 998244353

a, b, c = mi()

x = ii()

from math import gcd


if x % gcd(a, b) == 0 or x % gcd(b, c) == 0 or x % gcd(c, a) == 0 or x % gcd(a, gcd(b, c)) == 0:
    print('Yes')
else:
    print('No')
0