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