結果
問題 | 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 PyPy3from collections import Counter, defaultdict, dequeimport itertoolsimport reimport mathfrom functools import reduceimport operatorimport bisectfrom heapq import *import functoolsmod=998244353import sysinput=sys.stdin.readlinea,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')