結果
問題 | No.1987 Sandglass Inconvenience |
ユーザー |
|
提出日時 | 2022-06-26 18:00:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 82,240 KB |
実行使用メモリ | 53,688 KB |
最終ジャッジ日時 | 2024-11-17 04:39:20 |
合計ジャッジ時間 | 2,066 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
a,b,c = map(int,input().split())x = int(input())def gcd(a,b):while True:r =a % ba = bb = rif r == 0:return ad = gcd(a,b)d = gcd(d,c)if x % d == 0:print('Yes')else:print('No')