結果

問題 No.1987 Sandglass Inconvenience
ユーザー 👑 rin204rin204
提出日時 2022-06-24 21:22:39
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 86,516 KB
実行使用メモリ 71,472 KB
最終ジャッジ日時 2023-08-08 11:28:26
合計ジャッジ時間 3,317 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,348 KB
testcase_01 AC 70 ms
71,236 KB
testcase_02 AC 70 ms
70,960 KB
testcase_03 AC 74 ms
71,320 KB
testcase_04 AC 72 ms
71,436 KB
testcase_05 AC 71 ms
71,168 KB
testcase_06 AC 69 ms
71,308 KB
testcase_07 AC 70 ms
71,128 KB
testcase_08 AC 71 ms
71,472 KB
testcase_09 AC 70 ms
71,452 KB
testcase_10 AC 68 ms
71,204 KB
testcase_11 AC 72 ms
71,320 KB
testcase_12 AC 70 ms
71,236 KB
testcase_13 AC 71 ms
71,180 KB
testcase_14 AC 70 ms
71,176 KB
testcase_15 AC 69 ms
71,188 KB
testcase_16 AC 72 ms
71,236 KB
testcase_17 AC 71 ms
71,172 KB
testcase_18 AC 70 ms
71,240 KB
testcase_19 AC 70 ms
71,128 KB
testcase_20 AC 72 ms
71,288 KB
testcase_21 AC 72 ms
71,216 KB
testcase_22 AC 72 ms
71,124 KB
testcase_23 AC 71 ms
71,248 KB
testcase_24 AC 72 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd

a, b, c = map(int, input().split())
g = gcd(a, gcd(b, c))
x = int(input())
if x % g == 0:
    print("Yes")
else:
    print("No")
0