結果

問題 No.373 かけ算と割った余り
ユーザー mako55gomako55go
提出日時 2016-06-17 23:39:11
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 64,076 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-17 23:30:31
合計ジャッジ時間 892 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS  
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include<string>
#include <math.h>
#include<vector>
#include <math.h>

using namespace std;


int main() {
	long long a, b, c, d;
	cin >> a >> b >> c >> d;
	long long ans;
	ans = a + b; 
	ans = ans*c;
	ans = ans%d;
	cout << ans << endl;
	return 0;
}
0