I cann't figure out how to solve it. I m getting WA all the time! Plz help me.
here is my code:
#include <stdio.h>
#include <algorithm>
using namespace std;
struct MoneyPoint{
int m,p;
};
int const max_v = 10001;
MoneyPoint mp[max_v];
int grid[101][max_v];
int max_f(int a,int b){
return a>b?a:b ...
Search found 18 matches
- Thu Aug 03, 2006 5:43 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10819 - Trouble of 13-Dots
- Replies: 67
- Views: 61085
- Wed Jul 05, 2006 7:51 pm
- Forum: Algorithms
- Topic: download Free ebooks?
- Replies: 3
- Views: 2227
- Tue Jul 04, 2006 11:00 am
- Forum: Algorithms
- Topic: download Free ebooks?
- Replies: 3
- Views: 2227
download Free ebooks?
Can any body give me some links from where i can download some computer science related free ebooks
for example algorithm, dataStructure etc.
I never find a good links by google search
Thanks in advance

for example algorithm, dataStructure etc.
I never find a good links by google search

Thanks in advance

- Mon Feb 06, 2006 12:57 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62397
- Thu Feb 02, 2006 6:06 am
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62397
- Wed Jan 18, 2006 10:00 am
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62397
10930 - A-Sequence
I am getting wa :
plz help me, here is my code:
#include <stdio.h>
const int imax=1005;
int main()
{
int num,nump,sum[imax],i,j,n,qsum,f,cas=1;
while(scanf("%d",&n)==1)
{
sum[0]=qsum=f=0;
for(i=1;i<imax;i++)sum[i]=-1;
printf("Case #%d:",cas++);
for(i=0;i<n;i++)
{
scanf("%d",&num ...
plz help me, here is my code:
#include <stdio.h>
const int imax=1005;
int main()
{
int num,nump,sum[imax],i,j,n,qsum,f,cas=1;
while(scanf("%d",&n)==1)
{
sum[0]=qsum=f=0;
for(i=1;i<imax;i++)sum[i]=-1;
printf("Case #%d:",cas++);
for(i=0;i<n;i++)
{
scanf("%d",&num ...
- Tue Aug 23, 2005 11:53 am
- Forum: Volume 108 (10800-10899)
- Topic: 10880 - Colin and Ryan
- Replies: 45
- Views: 34889
- Mon Aug 22, 2005 3:52 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10880 - Colin and Ryan
- Replies: 45
- Views: 34889
- Sat Feb 26, 2005 10:10 am
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155458
- Wed Feb 16, 2005 9:32 am
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155458
- Fri Feb 04, 2005 6:10 am
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155458
- Sun Jan 16, 2005 9:32 am
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155458
- Wed Jan 12, 2005 1:25 pm
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155458
- Thu Dec 30, 2004 2:11 pm
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155458
- Sun Dec 26, 2004 1:41 pm
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155458