文章
19
粉丝
21
获赞
5
访问
19.0k
# include <bits/stdc++.h>
using namespace std;
string flag;
int main (void){
string s;
cin >> s;
if (s[0] == '-') flag = "-";
s.erase(0,1);
string di;
int zhi,pos;
char res;
for (int i = 0; i < s.size(); ++i){
if (s[i] == 'E'){
int num = 0;
int j = i + 2;
res = s[i + 1];
while (j < s.size()) num = num * 10 + (s[j] - '0'),j ++;
zhi = num;
break;
}else{
if (s[i] == '.'){
pos = i;
continue;
}else{
di += s[i];
}
}
}
if (res == '+'){
int dist = zhi - (di.size() - po...
登录后发布评论
暂无评论,来抢沙发