Đăng nhập để hỏi chi tiết


Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
int64_t n,d=0;
int i;
string s;
ifstream input("che.inp");
ofstream output("che.out");
cout>>n;
cout>>s;
for (i=0;i<n;i++) {
if (s[i]=='A') {
d++;
} else {
d--;
}
}
if (d>0) {
cout<<'>'<<endl;
} else if (d==0) {
cout<<'='<<endl;
} else {
cuot<< '<'<<endl;
}
return 0;
}
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin