NorlandAlice @ 2024-07-06 08:13:35
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,k[101];
cin>>n;
for(int i=0;i<=n;i++){
cin>>k[i];}
int j=n;
for(int i=0;i<=n;i++){
if(k[i]>0){
if(i=0){cout<<k[i]<<"x^"<<j;}
else {cout<<'+'<<k[i]<<"x^"<<j;}
}
if(k[i]<0){
cout<<k[i]<<"x^"<<j;
}
if(k[i]==0){continue;}
j--;
}
return 0;}
by jmy2012 @ 2024-07-06 08:17:36
你的 if (i=0)
是什么意思
by _Liyx_ @ 2024-07-06 08:36:33
@NorlandAlice 第11行,=是赋值符号
by wa_wa_wa_wa @ 2024-07-06 08:37:10
换==
by wz123456ccdbb @ 2024-07-06 08:37:57
为什么呢,因为他善
by suberking_99 @ 2024-07-20 18:59:26
淞淞