为啥我的是90%呢?

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    int n,a,b;
    cin>>n>>a>>b;
    if(a==0&&b==0) cout<<'0'<<endl;
    else if(a==0||b==0) cout<<'1'<<endl;
    else if(a+b<n) cout<<b+1<<endl;
    else cout<<b-(a-b)<<endl;
    return 0;

全部评论
已经解决了
点赞 回复 分享
发布于 2019-08-22 15:53
哪个题目?
点赞 回复 分享
发布于 2019-08-22 10:37

相关推荐

程序员小白条:这比例牛逼,750:1
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务