結果

問題 No.1987 Sandglass Inconvenience
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-12-01 08:01:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 55,680 KB
最終ジャッジ日時 2024-04-16 23:50:37
合計ジャッジ時間 2,617 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
55,552 KB
testcase_01 AC 57 ms
55,168 KB
testcase_02 AC 53 ms
55,040 KB
testcase_03 AC 54 ms
55,296 KB
testcase_04 AC 53 ms
55,552 KB
testcase_05 AC 54 ms
55,424 KB
testcase_06 AC 55 ms
55,296 KB
testcase_07 AC 54 ms
55,168 KB
testcase_08 AC 55 ms
55,296 KB
testcase_09 AC 54 ms
55,040 KB
testcase_10 AC 53 ms
55,424 KB
testcase_11 AC 54 ms
55,040 KB
testcase_12 AC 54 ms
55,552 KB
testcase_13 AC 53 ms
55,296 KB
testcase_14 AC 54 ms
55,424 KB
testcase_15 AC 53 ms
55,424 KB
testcase_16 AC 55 ms
55,424 KB
testcase_17 AC 54 ms
55,552 KB
testcase_18 AC 53 ms
55,168 KB
testcase_19 AC 53 ms
55,296 KB
testcase_20 AC 54 ms
55,680 KB
testcase_21 AC 55 ms
55,552 KB
testcase_22 AC 55 ms
55,168 KB
testcase_23 AC 55 ms
55,168 KB
testcase_24 AC 54 ms
55,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from functools import *
from itertools import *
from heapq import *
import sys,math
input = sys.stdin.readline

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