結果
| 問題 | No.1987 Sandglass Inconvenience |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-01 08:01:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 51 ms / 2,000 ms |
| コード長 | 279 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 82,044 KB |
| 実行使用メモリ | 55,680 KB |
| 最終ジャッジ日時 | 2024-10-08 06:52:53 |
| 合計ジャッジ時間 | 2,407 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
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')