結果

問題 No.1987 Sandglass Inconvenience
ユーザー chineristACchineristAC
提出日時 2022-06-24 21:30:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 82,708 KB
実行使用メモリ 57,672 KB
最終ジャッジ日時 2024-04-26 04:45:34
合計ジャッジ時間 2,240 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
56,584 KB
testcase_01 AC 46 ms
55,920 KB
testcase_02 AC 46 ms
56,436 KB
testcase_03 AC 46 ms
56,424 KB
testcase_04 AC 45 ms
56,284 KB
testcase_05 AC 45 ms
56,628 KB
testcase_06 AC 47 ms
57,344 KB
testcase_07 AC 45 ms
56,328 KB
testcase_08 AC 45 ms
56,668 KB
testcase_09 AC 46 ms
55,836 KB
testcase_10 AC 45 ms
57,600 KB
testcase_11 AC 46 ms
56,520 KB
testcase_12 AC 47 ms
56,036 KB
testcase_13 AC 46 ms
56,800 KB
testcase_14 AC 46 ms
56,244 KB
testcase_15 AC 46 ms
56,756 KB
testcase_16 AC 46 ms
57,432 KB
testcase_17 AC 44 ms
56,784 KB
testcase_18 AC 46 ms
55,888 KB
testcase_19 AC 46 ms
56,968 KB
testcase_20 AC 46 ms
57,672 KB
testcase_21 AC 46 ms
56,372 KB
testcase_22 AC 45 ms
56,032 KB
testcase_23 AC 46 ms
56,376 KB
testcase_24 AC 46 ms
57,096 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