結果
問題 |
No.373 かけ算と割った余り
|
ユーザー |
![]() |
提出日時 | 2016-06-17 23:39:11 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 780 ms |
コンパイル使用メモリ | 63,284 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-09 17:14:56 |
合計ジャッジ時間 | 1,593 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 1 WA * 4 |
ソースコード
#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; }