結果

問題 No.810 割った余りの個数
ユーザー ats5515
提出日時 2018-08-19 21:30:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 654 ms
コンパイル使用メモリ 74,748 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 16:17:45
合計ジャッジ時間 1,815 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
#include <assert.h>
using namespace std;
#define int long long
signed main() {
	int L, R, M;
	cin >> L >> R >> M;
	assert(0 <= L);
	assert(L <= R);
	assert(R <= (int)1e9);
	assert(1 <= M);
	assert(M <= (int)1e9);
	cout << min(R - L + 1, M) << endl;
}
0