結果
問題 | No.373 かけ算と割った余り |
ユーザー |
|
提出日時 | 2024-03-30 01:14:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 1,870 ms |
コンパイル使用メモリ | 191,456 KB |
最終ジャッジ日時 | 2025-02-20 15:46:54 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
外部呼び出し有り |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:14:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | system("pause"); | ~~~~~~^~~~~~~~~
ソースコード
// コピーして使う!#include <bits/stdc++.h>using namespace std;using ll = long long;int main() {ll a,b,c,d;cin>>a>>b>>c>>d;ll ans=a;ans=ans*b%d;ans=ans*c%d;cout<<ans<<endl;system("pause");}