結果
| 問題 | No.1987 Sandglass Inconvenience |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-26 18:00:35 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 24 ms / 2,000 ms |
| + 802µs | |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 81,028 KB |
| 実行使用メモリ | 56,012 KB |
| 最終ジャッジ日時 | 2026-09-25 05:01:33 |
| 合計ジャッジ時間 | 2,236 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
a,b,c = map(int,input().split())
x = int(input())
def gcd(a,b):
while True:
r =a % b
a = b
b = r
if r == 0:
return a
d = gcd(a,b)
d = gcd(d,c)
if x % d == 0:
print('Yes')
else:
print('No')