結果

問題 No.810 割った余りの個数
ユーザー sigmani
提出日時 2022-02-10 13:37:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 880 ms
コンパイル使用メモリ 89,868 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-25 19:51:49
合計ジャッジ時間 1,685 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:21:26: warning: 'R' is used uninitialized [-Wuninitialized]
   21 |         cout << min(M, R - L + 1);
      |                        ~~^~~
main.cpp:20:16: note: 'R' was declared here
   20 |         int L, R, M;
      |                ^
main.cpp:21:26: warning: 'L' is used uninitialized [-Wuninitialized]
   21 |         cout << min(M, R - L + 1);
      |                        ~~^~~
main.cpp:20:13: note: 'L' was declared here
   20 |         int L, R, M;
      |             ^
main.cpp:20:19: warning: '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