ACM 题目 {字符串} A==B?
ACM 题目 {字符串} A==B?
日期:2018-05-07 17:22:16 人气:1
要去除数字中的无效0,比如0.1000000000和0.1是相等的。
这是我的代码
#include
#include
using namespace std;
string solve(string s)
{
int len=s.length();
bool ok=false;
int x=0,y=len-1;
for(int i=0;i<len;i++)
{
if(s[i]=='.')