結果
| 問題 |
No.373 かけ算と割った余り
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-13 19:37:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 454 bytes |
| コンパイル時間 | 1,104 ms |
| コンパイル使用メモリ | 103,176 KB |
| 最終ジャッジ日時 | 2025-01-18 20:12:18 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
int64_t a, b, c, d;
cin >> a >> b >> c >> d;
int64_t ans = 1;
ans = ans * a % d;
ans = ans * b % d;
ans = ans * c % d;
cout << ans << endl;
return 0;
}