結果

問題 No.1987 Sandglass Inconvenience
ユーザー chineristACchineristAC
提出日時 2022-06-24 21:30:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 734 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 75,136 KB
最終ジャッジ日時 2023-08-08 11:46:19
合計ジャッジ時間 4,533 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
74,908 KB
testcase_01 AC 118 ms
74,712 KB
testcase_02 AC 124 ms
74,972 KB
testcase_03 AC 119 ms
74,844 KB
testcase_04 AC 118 ms
74,504 KB
testcase_05 AC 121 ms
74,848 KB
testcase_06 AC 119 ms
74,636 KB
testcase_07 AC 125 ms
75,064 KB
testcase_08 AC 123 ms
75,076 KB
testcase_09 AC 123 ms
75,136 KB
testcase_10 AC 120 ms
74,544 KB
testcase_11 AC 122 ms
74,632 KB
testcase_12 AC 121 ms
74,620 KB
testcase_13 AC 124 ms
74,628 KB
testcase_14 AC 122 ms
75,096 KB
testcase_15 AC 126 ms
74,536 KB
testcase_16 AC 119 ms
74,916 KB
testcase_17 AC 121 ms
74,896 KB
testcase_18 AC 120 ms
74,588 KB
testcase_19 AC 122 ms
75,084 KB
testcase_20 AC 123 ms
75,084 KB
testcase_21 AC 121 ms
74,544 KB
testcase_22 AC 118 ms
74,716 KB
testcase_23 AC 121 ms
74,636 KB
testcase_24 AC 121 ms
74,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import log,gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

a,b,c = mi()
X = int(input())

g = gcd(a,b)
g = gcd(g,c)

if X%g:
    print("No")
else:
    print("Yes")
0