My code worked fine for every test case i found here, but i still get WA.
Can someone help me?
Here is my code:
#include <stdio.h>
#define max 1000
int m[max][max], d[max];
int fila[max], inicio, fim;
int suc, unsuc;
void adiciona(int a, int b) {
int i;
for (i = 1; i <= m[a][0]; i++)
if (m ...
Search found 10 matches
- Mon Sep 04, 2006 3:34 pm
- Forum: Volume 7 (700-799)
- Topic: 793 - Network Connections
- Replies: 102
- Views: 47633
- Fri Aug 11, 2006 8:56 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10062 - Tell me the frequencies!
- Replies: 235
- Views: 69482
- Thu Aug 10, 2006 7:57 am
- Forum: Volume 110 (11000-11099)
- Topic: 11056 - Formula 1
- Replies: 34
- Views: 21605
case insensitive
how do i make the comparison case insensitive?
i'm using strcmp now, and i saw strcasecmp in some guy's code, but it didn't work. Can you help me?
i'm using strcmp now, and i saw strcasecmp in some guy's code, but it didn't work. Can you help me?
- Fri Mar 24, 2006 9:09 pm
- Forum: Volume 1 (100-199)
- Topic: 160 - Factors and Factorials
- Replies: 205
- Views: 45142
160 - Help!
I have 3 problems with my code:
When i test with the sample input 53, it doesn't work (it seems that unsigned long int isn't big enough, but i don't know how to fix it).
When i test whit 7 or more numbers it doesn't work and i don't know why.
And i don't know how to jump to the next line when the ...
When i test with the sample input 53, it doesn't work (it seems that unsigned long int isn't big enough, but i don't know how to fix it).
When i test whit 7 or more numbers it doesn't work and i don't know why.
And i don't know how to jump to the next line when the ...
- Tue Feb 28, 2006 2:54 pm
- Forum: Volume 1 (100-199)
- Topic: 105 - The Skyline Problem
- Replies: 160
- Views: 51312
- Mon Feb 27, 2006 5:12 pm
- Forum: Volume 1 (100-199)
- Topic: 105 - The Skyline Problem
- Replies: 160
- Views: 51312
105 WA
I don't understand why i got WA...
Code: Select all
- Fri Feb 17, 2006 5:27 am
- Forum: Volume 1 (100-199)
- Topic: 105 - The Skyline Problem
- Replies: 160
- Views: 51312
- Fri Feb 17, 2006 2:33 am
- Forum: Volume 1 (100-199)
- Topic: 105 - The Skyline Problem
- Replies: 160
- Views: 51312
105... Help!
I know these way to read the multiple inputs:
But i don't know how to make it stop reading.
I looked at a lot of topics but i couldn't find it.
Can anyone help me?
Thanks.
Code: Select all
while (scanf("%d %d %d", &li, &hi, &ri)==3) {
I looked at a lot of topics but i couldn't find it.
Can anyone help me?
Thanks.
- Wed Feb 08, 2006 5:20 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317862
- Wed Feb 08, 2006 4:43 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317862