[PAT甲]1002 A+B for Polynomials (25 分)
#include
const int max=1001;
int main(){
int count=0,n,e;
double a[max]={0},c;
scanf("%d",&n);
for(int i=0;i
if(a[i]!=0){
count++;
}
}
printf("%d",count);
for(int i=1000;i>=0;i--){
if(a[i]!=0){
printf(" %d %.1f",i
共有 0 条评论