请问为什么我这个代码自测通过了但提交就是错误的呢

#include <bits/stdc++.h>

using namespace std;

int main()

{

int t,a,b;

cin>>t;

while(t--){

cin>>a>>b;

if(a=='1'&&b=='1') cout<<0;

if(a==b){

if(a%2==0&&a!=2){

if(a/2==4) cout<<2;

else cout<<1;

}else{

if(a%2==1&&a!=9) cout<<0;

else{

if(a/2==1) cout<<0;

else cout<<1;

}

}

}else cout<<111;

cout<<endl;

}

}

全部评论
uu题目理解错了哦,数圈圈的意思的看数字里有多少个封闭图形,比如0、4、6、9有一个,8有两个,要计算出a到b中所有的封闭图形数量
点赞 回复 分享
发布于 2022-11-22 10:41 四川

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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