全wa求助
查看原帖
全wa求助
1388380
hanniemuo楼主2024/8/4 09:25
#include <iostream>
using namespace std;
int a,b;
int x,y;
int main()
{
    cin>>a;
    cin>>b;
    x=(a/100)+((a-(a/100))/10)+(a-((a/100)+(a/10))/1);
    y=(b/100)+((b-(b/100))/10)+(b-((b/100)+(b/10))/1);
    if(x>y)
    {
    	cout<<x;
	}
    else if(x<y)
    {
    	cout<<y;
	}
	else
	{
		cout<<x;
	}
    return 0;
}
2024/8/4 09:25
加载中...