結果
問題 |
No.373 かけ算と割った余り
|
ユーザー |
|
提出日時 | 2016-06-12 09:10:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 403 ms |
コンパイル使用メモリ | 55,000 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 13:04:27 |
合計ジャッジ時間 | 880 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }