結果

問題 No.2558 中国剰余定理
ユーザー toshiconnertoshiconner
提出日時 2023-12-02 14:57:58
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 1,177 ms
コンパイル使用メモリ 111,804 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-26 17:46:11
合計ジャッジ時間 2,095 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<ranges>
#include<atcoder/math>
using namespace std;

int main() {
    int A, B, a, b; cin >> A >> B >> a >> b;
    auto [r, m] = atcoder::crt({a, b}, {A, B});
    cout << r << endl;
}
0