A. The number of positions1000 / 思维

Posted 幽殇默

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了A. The number of positions1000 / 思维相关的知识,希望对你有一定的参考价值。


https://codeforces.com/problemset/problem/124/A

#include<bits/stdc++.h>
using namespace std;
int main(void)
{
	int n,a,b; cin>>n>>a>>b;
	int ans1=n-a;
	int ans2=b+1;
	cout<<min(ans1,ans2); 
	return 0;
}

以上是关于A. The number of positions1000 / 思维的主要内容,如果未能解决你的问题,请参考以下文章

浙南联合训练赛 H - The number of positions

*Find the Number Occurring Odd Number of Times

Codeforces Round #585 (Div. 2) B. The Number of Products

number field is the union of the set of all strings and the set of all numbers. The set of things th

ValueError: The number of elements in ‘fill‘ does not match the number of bands of the image (3 != 4

NiFi PutKudu错误:the number of replicas does not equal the number of servers解决方案