Can anyone help me?
I have no idea what is wrong with my code.
Moreover I am unable to find any tricky input :(
#include <stdio.h>
typedef struct {
int waga;
int iq;
int pos;
} tslo;
int cmp(void *a1, void *a2)
{
tslo *a,*b;
a=(tslo*)a1;
b=(tslo*)a2;
if(a->waga==b->waga)
{
return a->iq-b ...
Search found 8 matches
- Sun Aug 06, 2006 3:30 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10131 - Is Bigger Smarter?
- Replies: 93
- Views: 89041
- Sun Aug 06, 2006 3:28 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10131 - Is Bigger Smarter?
- Replies: 93
- Views: 89041
wa
Can anyone help me? I have no idea what is wrong with my code.
I am unable to find a tricky input :(
#include <stdio.h>
typedef struct {
int waga;
int iq;
int pos;
} tslo;
int cmp(void *a1, void *a2)
{
tslo *a,*b;
a=(tslo*)a1;
b=(tslo*)a2;
if(a->waga==b->waga)
{
return a->iq-b->iq ...
I am unable to find a tricky input :(
#include <stdio.h>
typedef struct {
int waga;
int iq;
int pos;
} tslo;
int cmp(void *a1, void *a2)
{
tslo *a,*b;
a=(tslo*)a1;
b=(tslo*)a2;
if(a->waga==b->waga)
{
return a->iq-b->iq ...
- Thu Jan 05, 2006 1:30 am
- Forum: Volume 101 (10100-10199)
- Topic: 10196 - Check The Check
- Replies: 77
- Views: 36075
trip
Hi I keep getting Wa on this code :(
Please help. Thanks in advance.
#include <stdio.h>
char chess[60][60];
char is_sub_check(int x, int y,int dx,int dy, char sub,char uk)
{
int sx,sy,i1;
for(sx=x,sy=y,i1=0;i1<10;i1++)
{
sx+=dx;
sy+=dy;
if(chess[sx][sy]!='.')
{
if(chess[sx][sy]==('q'-sub ...
Please help. Thanks in advance.
#include <stdio.h>
char chess[60][60];
char is_sub_check(int x, int y,int dx,int dy, char sub,char uk)
{
int sx,sy,i1;
for(sx=x,sy=y,i1=0;i1<10;i1++)
{
sx+=dx;
sy+=dy;
if(chess[sx][sy]!='.')
{
if(chess[sx][sy]==('q'-sub ...
- Wed Dec 14, 2005 8:06 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10267 - Graphical Editor
- Replies: 190
- Views: 77499
Graphical Editor strange WA :(
I keep getting wrong answer on this code.
Thanks in advance.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char pic[261][261];
int c,l,deep;
void chclr(int x,int y,char cl,char cl2)
{
if(((x-1) >= 0) && (pic[x-1][y]==cl))
{
pic[x-1][y]=cl2;
chclr(x-1,y,cl,cl2);
}
if(((x+1 ...
Thanks in advance.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char pic[261][261];
int c,l,deep;
void chclr(int x,int y,char cl,char cl2)
{
if(((x-1) >= 0) && (pic[x-1][y]==cl))
{
pic[x-1][y]=cl2;
chclr(x-1,y,cl,cl2);
}
if(((x+1 ...
- Sun Dec 04, 2005 9:48 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96901
- Sun Dec 04, 2005 9:46 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10142 - Australian Voting
- Replies: 82
- Views: 45896
- Fri Dec 02, 2005 3:42 am
- Forum: Volume 100 (10000-10099)
- Topic: 10044 - Erdos Numbers
- Replies: 102
- Views: 55439
10044
Hi I have a trouble with task 10044, could you help me ?
- Mon Nov 28, 2005 4:58 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96901
Prime Time strange WA :(
Hi I have tested my code against many inputs and I am still unable to find a bug :(
I hope someone will help me.
#include <stdio.h>
#include <math.h>
#define ilosc 20001
int main(int argc, char *argv[])
{
int i1,i2,p1,p2,up,is_prime;
char pri[ilosc];
unsigned long long int form;
float per,wyn ...
I hope someone will help me.
#include <stdio.h>
#include <math.h>
#define ilosc 20001
int main(int argc, char *argv[])
{
int i1,i2,p1,p2,up,is_prime;
char pri[ilosc];
unsigned long long int form;
float per,wyn ...