結果

問題 No.1987 Sandglass Inconvenience
ユーザー ikomaikoma
提出日時 2022-06-24 22:29:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 71,768 KB
最終ジャッジ日時 2023-08-08 12:43:29
合計ジャッジ時間 3,084 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,600 KB
testcase_01 AC 62 ms
71,216 KB
testcase_02 AC 65 ms
71,580 KB
testcase_03 AC 66 ms
71,568 KB
testcase_04 AC 62 ms
71,492 KB
testcase_05 AC 62 ms
71,768 KB
testcase_06 AC 64 ms
71,380 KB
testcase_07 AC 65 ms
71,716 KB
testcase_08 AC 65 ms
71,488 KB
testcase_09 AC 63 ms
71,420 KB
testcase_10 AC 64 ms
71,576 KB
testcase_11 AC 66 ms
71,424 KB
testcase_12 AC 65 ms
71,516 KB
testcase_13 AC 66 ms
71,556 KB
testcase_14 AC 66 ms
71,420 KB
testcase_15 AC 64 ms
71,192 KB
testcase_16 AC 65 ms
71,720 KB
testcase_17 AC 63 ms
71,416 KB
testcase_18 AC 65 ms
71,636 KB
testcase_19 AC 65 ms
71,544 KB
testcase_20 AC 64 ms
71,468 KB
testcase_21 AC 65 ms
71,428 KB
testcase_22 AC 66 ms
71,220 KB
testcase_23 AC 63 ms
71,380 KB
testcase_24 AC 65 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd

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

bc = gcd(b,c)
abc = gcd(a,bc)
if abc!=1 and X%abc != 0:
    print("No")
else:
    print("Yes")
0