#18137: 請問我哪裡錯了


rexwu1104@gmail.com (黑雪公主 Black Lotus)

學校 : 新北市私立南山高級中學
編號 : 93041
來源 : [118.166.54.130]
最後登入時間 :
2022-06-06 20:48:09
e273. 微分入門課 -- π | From: [36.224.136.126] | 發表日期 : 2019-06-19 12:51

#import <cstdio>
longint Input(){
char cha;
longint x=0;
while((cha=getchar_unlocked()))
if(cha!=' '&&cha!='\n')break;
x=cha-48;
while((cha=getchar_unlocked())){
if(cha==' '||cha=='\n')break;
x=x*10+cha-48;
}
if(x!=0||x==0)return x;
return EOF;
}
inline void write(int x){
if(x>9) write(x/10);
putchar_unlocked(x%10+'0');
}
int main()
{
int a;
while((a=Input())){
int b[a];
if(a!=1){
for(int i=a-1;i>=0;i--){
b[i]=Input();
b[i]*=i;
}
for(int i=a-1;i>0;i--){
write(b[i]), putchar_unlocked(32);
}
putchar_unlocked(10);
}
else{
b[0]=Input();
putchar_unlocked(48);
putchar_unlocked(10);
}
}
}
 
ZeroJudge Forum