Search found 3 matches

by google_goody
Mon Jun 18, 2007 5:41 am
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 17703


#include<stdio.h>
#include<stdlib.h>

int money[5]={1,5,10,25,50};
long long count[30005];
int c,m,i;
int in;
int main()
{
for(i=1;i<30005;i++)
count[i]=0;
count[0]=1;

for(m=0;m<=4;m++)
{
for(c=money[m];c<30005;c++)
{
count[c]+=count[c-money[m]];

}
}

while(scanf ...
by google_goody
Wed Jan 10, 2007 10:12 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152803

it doesn't work..

sorry still WA
by google_goody
Tue Jan 09, 2007 1:46 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152803

10038always WA!!

well, this is killing me...
plz help me with this

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int n, i, ans, found=1;
long num[3000]={0};
char selisih[3000];

scanf("%d", &n);


memset (selisih, 0, sizeof (char)*3000);
for(i=1;i<=n;i++)
{
scanf("%ld", &num[i ...

Go to advanced search