結果
| 問題 |
No.1987 Sandglass Inconvenience
|
| コンテスト | |
| ユーザー |
k_o_pasture
|
| 提出日時 | 2022-06-24 21:40:10 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 234 bytes |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-08 17:34:25 |
| 合計ジャッジ時間 | 1,706 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
from math import gcd
a,b,c = map(int,input().split())
X = int(input())
u = [a,b,c]
u.append(gcd(a,b))
u.append(gcd(a,c))
u.append(gcd(c,b))
u.append(gcd(a,b,c))
# print(u)
for t in u:
if X%t == 0:
print('Yes')
exit()
print('No')
k_o_pasture