文章
55
粉丝
317
获赞
160
访问
32.9k
#include<iostream>
#include<string>
using namespace std;
int main()
{
string str;
cin >> str;
string pre, post;
pre = str.substr(0, str.find('='));
post = str.substr(str.find('=')+1);
int x_num = 0;int re_num=0;
int split_index = 0;char flag = '+';
for(int i=0;i<pre.size();i++)
{
if (pre[i] == 'x')
{
int num;
if (pre.substr(split_index, i - split_index).empty()) num = 1;
else num = stoi(pre.substr(split_index, i - split_index));
&...
登录后发布评论
暂无评论,来抢沙发