結果

問題 No.1987 Sandglass Inconvenience
ユーザー siganaisiganai
提出日時 2022-06-25 18:45:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 402 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 82,340 KB
実行使用メモリ 65,500 KB
最終ジャッジ日時 2024-04-27 06:24:44
合計ジャッジ時間 2,690 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
64,620 KB
testcase_01 AC 49 ms
64,128 KB
testcase_02 AC 50 ms
64,668 KB
testcase_03 AC 51 ms
64,400 KB
testcase_04 AC 53 ms
64,628 KB
testcase_05 AC 49 ms
65,324 KB
testcase_06 AC 50 ms
64,096 KB
testcase_07 AC 52 ms
64,492 KB
testcase_08 AC 51 ms
64,488 KB
testcase_09 AC 50 ms
65,364 KB
testcase_10 AC 51 ms
64,836 KB
testcase_11 AC 51 ms
63,984 KB
testcase_12 AC 51 ms
63,752 KB
testcase_13 AC 49 ms
63,972 KB
testcase_14 AC 48 ms
65,500 KB
testcase_15 AC 49 ms
63,720 KB
testcase_16 AC 48 ms
64,208 KB
testcase_17 AC 50 ms
64,744 KB
testcase_18 AC 48 ms
63,612 KB
testcase_19 AC 51 ms
64,048 KB
testcase_20 AC 51 ms
63,744 KB
testcase_21 AC 51 ms
64,884 KB
testcase_22 AC 51 ms
64,316 KB
testcase_23 AC 52 ms
64,408 KB
testcase_24 AC 50 ms
64,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env PyPy3

from collections import Counter, defaultdict, deque
import itertools
import re
import math
from functools import reduce
import operator
import bisect
from heapq import *
import functools
mod=998244353

import sys
input=sys.stdin.readline

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