結果

問題 No.810 割った余りの個数
ユーザー sigmanisigmani
提出日時 2022-02-10 13:37:26
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 773 ms
コンパイル使用メモリ 89,296 KB
実行使用メモリ 4,512 KB
最終ジャッジ日時 2023-09-08 02:43:42
合計ジャッジ時間 2,489 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内:
main.cpp:21:26: 警告: ‘R’ is used uninitialized [-Wuninitialized]
   21 |         cout << min(M, R - L + 1);
      |                        ~~^~~
main.cpp:20:16: 備考: ‘R’ はここで定義されています
   20 |         int L, R, M;
      |                ^
main.cpp:21:26: 警告: ‘L’ is used uninitialized [-Wuninitialized]
   21 |         cout << min(M, R - L + 1);
      |                        ~~^~~
main.cpp:20:13: 備考: ‘L’ はここで定義されています
   20 |         int L, R, M;
      |             ^
main.cpp:20:19: 警告: ‘M’ is used uninitialized [-Wuninitialized]
   20 |         int L, R, M;
      |                   ^

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>
#include<bitset>
#include <vector>
#include<bitset>
#include <iomanip>
#include <map>
#include <set>
#include <stack>
#include <deque>
#include <climits>
#include <queue>
using namespace std;


int main() {
	
	int L, R, M;
	cout << min(M, R - L + 1);


	
}
0