結果
| 問題 |
No.810 割った余りの個数
|
| コンテスト | |
| ユーザー |
pekko
|
| 提出日時 | 2019-06-01 20:15:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 172 bytes |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 63,568 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-17 19:59:02 |
| 合計ジャッジ時間 | 1,573 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:6:8: warning: 'L' is used uninitialized [-Wuninitialized]
6 | if(L - R + 1 > M){
| ~~^~~
main.cpp:5:7: note: 'L' was declared here
5 | int L,R,M;
| ^
main.cpp:6:8: warning: 'R' is used uninitialized [-Wuninitialized]
6 | if(L - R + 1 > M){
| ~~^~~
main.cpp:5:9: note: 'R' was declared here
5 | int L,R,M;
| ^
main.cpp:6:3: warning: 'M' is used uninitialized [-Wuninitialized]
6 | if(L - R + 1 > M){
| ^~
main.cpp:5:11: note: 'M' was declared here
5 | int L,R,M;
| ^
ソースコード
#include <iostream>
using namespace std;
int main(){
int L,R,M;
if(L - R + 1 > M){
cout << M << endl;
}
else{
cout << L - R + 1 << endl;
}
return 0;
}
pekko