結果
| 問題 | No.373 かけ算と割った余り |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-12 09:10:04 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| 記録 | |
| コンパイル時間 | 309 ms |
| コンパイル使用メモリ | 68,712 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-25 16:19:13 |
| 合計ジャッジ時間 | 1,100 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 2 |
ソースコード
// http://yukicoder.me/problems/748
#include <cstdlib>
#include <iostream>
int
main()
{
std::cin.tie(0);
std::ios::sync_with_stdio(false);
int a, b, c, d;
std::cin >> a >> b >> c >> d;
std::cout << ((a % d) * (b % d) % d * (c % d) % d) << std::endl;
return EXIT_SUCCESS;
}