讨论题目 :.

发表新讨论

#3483 這題感覺好難噢

eason911 SendIMessage
Eason

d652. 貪婪之糊 | From: 123.240.69.242 | 发表日期 : 2010-02-26 23:19

只有作者做出來喔?

 @@ 

 


文章类型 : 一般 | 回应文章 | 回原始文章
#3484 Re:這題感覺好難噢

linishan SendIMessage
恨 就是想不到是怎樣 他X的整個超不爽 !

d652. 貪婪之糊 | From: 125.228.227.187 | 发表日期 : 2010-02-27 08:11

只有作者做出來喔?

 @@ 


題目感覺應該難度一般..

但是文字敘述很難懂就是了...  (暫時不想仔細解讀..)

 


文章类型 : 一般 | 回应文章 | 回原始文章
#3503 Re:這題感覺好難噢

saitor362320 SendIMessage
The Son Of Osiris

d652. 貪婪之糊 | From: 140.121.213.179 | 发表日期 : 2010-03-05 17:13

只有作者做出來喔?

 @@ 


題目感覺應該難度一般..

但是文字敘述很難懂就是了...  (暫時不想仔細解讀..)



1 2 3 4 5

是要怎麼才剩下1 5 啊= ="

 


文章类型 : 一般 | 回应文章 | 回原始文章
#3504 Re:這題感覺好難噢

saitor362320 SendIMessage
The Son Of Osiris

d652. 貪婪之糊 | From: 140.121.213.179 | 发表日期 : 2010-03-05 17:18

只有作者做出來喔?

 @@ 


題目感覺應該難度一般..

但是文字敘述很難懂就是了...  (暫時不想仔細解讀..)



1 2 3 4 5

是要怎麼才剩下1 5 啊= ="


喔喔@@"總算看懂了= =" 


文章类型 : 一般 | 回应文章 | 回原始文章
#3505 Re:這題感覺好難噢

saitor362320 SendIMessage
The Son Of Osiris

d652. 貪婪之糊 | From: 140.121.213.179 | 发表日期 : 2010-03-05 18:08

只有作者做出來喔?

 @@ 


題目感覺應該難度一般..

但是文字敘述很難懂就是了...  (暫時不想仔細解讀..)



1 2 3 4 5

是要怎麼才剩下1 5 啊= ="


喔喔@@"總算看懂了= ="


請問一下哪裡有問題呢(WA)

#include<stdio.h>
#define SIZE 501
int main()
{
 int n;
 int i;
 int a[SIZE];
 int pol=0;
 while(scanf("%d",&n)!=EOF){
  for(i=0;i<n;i++){
   scanf("%d",&a[i]);
  }
  for(i=1;i<n-1;i++)
   pol+=a[0]*a[i]*a[i+1];
  printf("%d\n",pol);
 }

 return 0;
}

 


文章类型 : 一般 | 回应文章 | 回原始文章
#3506 Re:這題感覺好難噢

saitor362320 SendIMessage
The Son Of Osiris

d652. 貪婪之糊 | From: 140.121.213.179 | 发表日期 : 2010-03-05 18:22

更正

#include<stdio.h>
#define SIZE 501
int main()
{
 int n;
 int i;
 int a[SIZE];
 int pol=0;
 while(scanf("%d",&n)!=EOF){
  for(i=0;i<n;i++){
   scanf("%d",&a[i]);
  }
  for(i=1;i<n-1;i++)
   pol+=a[0]*a[i]*a[i+1];
  printf("%d\n",pol);
  pol=0;
 }

 return 0;

 


文章类型 : 一般 | 回应文章 | 回原始文章
#3511 Re:這題感覺好難噢

saitor362320 SendIMessage
The Son Of Osiris

d652. 貪婪之糊 | From: 140.121.213.179 | 发表日期 : 2010-03-06 02:43

更正

#include
#define SIZE 501
int main()
{
 int n;
 int i;
 int a[SIZE];
 int pol=0;
 while(scanf("%d",&n)!=EOF){
  for(i=0;i   scanf("%d",&a[i]);
  }
  for(i=1;i   pol+=a[0]*a[i]*a[i+1];
  printf("%d\n",pol);
  pol=0;
 }

 return 0;

原來完全不是這樣= =
真是... 


文章类型 : 一般 | 回应文章 | 回原始文章

发表新讨论

ZeroJudge Forum