結果
問題 |
No.1987 Sandglass Inconvenience
|
ユーザー |
![]() |
提出日時 | 2022-06-25 18:45:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 62 ms / 2,000 ms |
コード長 | 402 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 64,256 KB |
最終ジャッジ日時 | 2024-11-15 06:17:02 |
合計ジャッジ時間 | 3,417 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#!/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')