結果
| 問題 | No.2558 中国剰余定理 |
| コンテスト | |
| ユーザー |
add4567
|
| 提出日時 | 2023-12-02 14:45:05 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 1,633 ms |
| コンパイル使用メモリ | 165,908 KB |
| 実行使用メモリ | 13,760 KB |
| 最終ジャッジ日時 | 2024-09-26 17:17:27 |
| 合計ジャッジ時間 | 5,151 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 4 TLE * 1 -- * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
//cinX script
int A;
int B;
int a;
int b;
cin >> A >> B >> a >> b;
int N;
N = 0;
while (N % A == a && N % B == b)
{
N++;
}
cout << N << endl;
}
add4567