标签:contest ble 时间 text blog logs show 出错 tail
时间限制:1秒 内存限制:128兆
3 1 1 5 2 3
2 3
1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int n,a,b,i,ans; 6 while(scanf("%d%d%d",&n,&a,&b)!=EOF) 7 { 8 if(a+b==n) 9 ans=n-a; 10 else if(a+b<n) 11 ans=b+1; 12 else if(a+b>n) 13 ans=n-a; 14 printf("%d\n",ans); 15 } 16 return 0; 17 }
标签:contest ble 时间 text blog logs show 出错 tail
原文地址:http://www.cnblogs.com/ECJTUACM-873284962/p/6389207.html