結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 1 ms
6,940 KB
testcase_03 WA -
testcase_04 AC 2 ms
6,944 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) % d;

	cout << res << endl;
}
0