Problem Description
Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".
Input
each test case contains two numbers A and B.
Output
for each case, if A is equal to B, you should print "YES", or print "NO".
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s1,s2;
int i,j;
while(cin>>s1>>s2){
//去掉前面的无效0,跳过负号
for(i=0;i<s1.size()&&(s1[i]=='-'||s1[i]=='0');i++){
if(s1[i]!='-'){
s1.erase(i,1);
i--;
}
}
for(i=0;i<s2.size()&&(s2[i]=='-'||s2[i]=='0');i++){
if(s2[i]!='-'){
s2.era