結果

問題 No.810 割った余りの個数
ユーザー severrabaenseverrabaen
提出日時 2019-04-14 19:48:17
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 809 bytes
コンパイル時間 2,132 ms
コンパイル使用メモリ 164,712 KB
実行使用メモリ 5,644 KB
最終ジャッジ日時 2023-10-19 12:48:50
合計ジャッジ時間 2,413 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,644 KB
testcase_01 AC 2 ms
5,644 KB
testcase_02 AC 2 ms
5,644 KB
testcase_03 AC 2 ms
5,644 KB
testcase_04 AC 2 ms
5,644 KB
testcase_05 AC 2 ms
5,644 KB
testcase_06 AC 2 ms
5,644 KB
testcase_07 AC 2 ms
5,644 KB
testcase_08 AC 2 ms
5,644 KB
testcase_09 AC 2 ms
5,644 KB
testcase_10 AC 2 ms
5,644 KB
testcase_11 AC 2 ms
5,644 KB
testcase_12 AC 2 ms
5,644 KB
testcase_13 AC 2 ms
5,644 KB
testcase_14 AC 2 ms
5,644 KB
testcase_15 AC 2 ms
5,644 KB
testcase_16 AC 2 ms
5,644 KB
testcase_17 AC 2 ms
5,644 KB
testcase_18 AC 2 ms
5,644 KB
testcase_19 AC 2 ms
5,644 KB
testcase_20 AC 2 ms
5,644 KB
testcase_21 AC 2 ms
5,644 KB
testcase_22 AC 2 ms
5,644 KB
testcase_23 AC 2 ms
5,644 KB
testcase_24 AC 2 ms
5,644 KB
testcase_25 AC 2 ms
5,644 KB
testcase_26 AC 2 ms
5,644 KB
testcase_27 AC 2 ms
5,644 KB
testcase_28 AC 2 ms
5,644 KB
testcase_29 AC 2 ms
5,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//↓template↓

#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n)  n.begin(),n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30];
long long fac[200005], finv[200005], inv[200005];
vector<long long>dij;
struct edge { long long to, cost; };
vector<vector<edge> >G;

long long mod_pow(long long a, long long b) {
	long long res = 1;
	while (b) {
		if (b & 1) { res = res * a%MOD; }
		a = a * a%MOD;
		b >>= 1;
	}
	return res;
}

void addedge(int from, int to, int cost) {
	G[from].push_back({ to,cost });
	G[to].push_back({ from,cost });
}

//↑template↑

int main() {
	long long a, b, c;
	cin >> a >> b >> c;
	cout << min(c, b - a + 1) << endl;
}
0