結果
| 問題 | No.2558 中国剰余定理 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-03-30 16:33:03 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 62 ms / 2,000 ms | 
| コード長 | 276 bytes | 
| コンパイル時間 | 198 ms | 
| コンパイル使用メモリ | 82,048 KB | 
| 実行使用メモリ | 58,240 KB | 
| 最終ジャッジ日時 | 2024-09-30 17:35:52 | 
| 合計ジャッジ時間 | 2,618 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 29 | 
ソースコード
def I(): return input()
def N(): return int(input())
def M(): return map(int,input().split())
def L(): return list(map(int,input().split()))
#-----------------------------------------
A,B,a,b = M()
for x in range(A*B):
  if x % A == a and x % B == b:
    print(x)
    break
            
            
            
        