結果

問題 No.1987 Sandglass Inconvenience
ユーザー tassei903tassei903
提出日時 2022-06-24 21:27:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 450 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 54,152 KB
最終ジャッジ日時 2024-04-26 04:34:56
合計ジャッジ時間 1,968 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,768 KB
testcase_01 AC 41 ms
52,944 KB
testcase_02 AC 39 ms
52,984 KB
testcase_03 AC 38 ms
53,136 KB
testcase_04 AC 39 ms
52,792 KB
testcase_05 AC 38 ms
53,928 KB
testcase_06 AC 38 ms
53,808 KB
testcase_07 AC 38 ms
53,196 KB
testcase_08 AC 38 ms
52,928 KB
testcase_09 AC 39 ms
53,248 KB
testcase_10 AC 44 ms
52,924 KB
testcase_11 AC 39 ms
52,828 KB
testcase_12 AC 39 ms
52,732 KB
testcase_13 AC 38 ms
52,472 KB
testcase_14 AC 37 ms
53,064 KB
testcase_15 AC 38 ms
53,576 KB
testcase_16 AC 38 ms
53,120 KB
testcase_17 AC 41 ms
54,036 KB
testcase_18 AC 37 ms
52,788 KB
testcase_19 AC 38 ms
52,908 KB
testcase_20 AC 38 ms
53,124 KB
testcase_21 AC 39 ms
52,904 KB
testcase_22 AC 39 ms
53,084 KB
testcase_23 AC 38 ms
53,352 KB
testcase_24 AC 38 ms
54,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
from math import gcd
a,b,c = na()
x = ni()
g = gcd(a,gcd(b,c))
if x % g:
    No()
else:
    Yes()
0