結果
問題 |
No.373 かけ算と割った余り
|
ユーザー |
![]() |
提出日時 | 2019-02-25 14:58:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 505 ms |
コンパイル使用メモリ | 53,724 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 02:48:32 |
合計ジャッジ時間 | 1,047 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 1 WA * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:9:25: warning: ‘LLL’ is used uninitialized [-Wuninitialized] 9 | long long LLL = (LLL*c)%d; | ~~~~^~~
ソースコード
#include<iostream> #include <string> int main() { long long a,b,c,d; std::cin >> a >> b >> c >> d; long long LL = (a*b)%d; long long LLL = (LLL*c)%d; std::cout << LLL <<std::endl; return 0; }