結果
| 問題 | 
                            No.373 かけ算と割った余り
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-06-22 22:15:21 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 167 bytes | 
| コンパイル時間 | 1,507 ms | 
| コンパイル使用メモリ | 165,132 KB | 
| 実行使用メモリ | 6,940 KB | 
| 最終ジャッジ日時 | 2024-07-03 18:55:38 | 
| 合計ジャッジ時間 | 1,960 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 3 WA * 2 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c,d; cin>>a>>b>>c>>d;
	a%=d; b%=d; c%=d;
	int ans=(a*b)%d;
	ans=(ans*c)%d;
	cout << ans << endl;
}