結果
| 問題 |
No.373 かけ算と割った余り
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-31 17:13:09 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 290 bytes |
| コンパイル時間 | 3,825 ms |
| コンパイル使用メモリ | 250,428 KB |
| 最終ジャッジ日時 | 2025-02-20 18:08:09 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;
ll a, b, c, d, ans;
int main() {
cin >> a >> b >> c >> d;
ans = a * b % d;
ans = ans * c % d;
ans %= d;
cout << ans << endl;
return 0;
}