結果

問題 No.373 かけ算と割った余り
ユーザー youthfuldays072youthfuldays072
提出日時 2018-08-18 17:28:08
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 523 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 68,988 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-24 02:06:41
合計ジャッジ時間 1,299 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 WA -
testcase_02 AC 1 ms
5,376 KB
testcase_03 WA -
testcase_04 AC 2 ms
5,376 KB
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #


#include<iostream>
#include<string>
#include<algorithm>
#include<functional>
#include<vector>
#include<set>
#include<queue>
#include<list>
#include<stdio.h>
#include<stdlib.h>
#include<map>
#include<cstdio>

#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()

typedef long long ll;



using namespace std;

int main() {
	ll a, b, c, d;

	cin >> a >> b >> c >> d;

	

	ll res=((a*b) % d)*(c % d);

	cout << res << endl;
}
0