40pts
查看原帖
40pts
1035905
wenjunyi楼主2024/4/28 21:25
#include <bits/stdc++.h>
using namespace std;
long long a,b,n,c;
int main(){
	ios::sync_with_stdio(0),cin.tie(0);
	cin>>n;
	for(int i=1;i<=n;i++){
		scanf("%d+%d=%d",&a,&b,&c);
		if(a+b==c){
			cout<<"Right!\n";
		}
		else{
			cout<<"Wrong!\n";
		}
	} 
	return 0;
}
2024/4/28 21:25
加载中...