結果

問題 No.810 割った余りの個数
ユーザー KKT89
提出日時 2020-06-08 06:59:01
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 1,346 ms
コンパイル使用メモリ 82,476 KB
最終ジャッジ日時 2025-01-11 00:06:56
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <set>
#include <string>
#include <map>
#include <numeric>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int l,r,m; cin >> l >> r >> m;
	cout << min(m,r-l+1) << endl;
}
0