Search found 13 matches

by KaDeG
Thu Jul 24, 2008 5:33 am
Forum: Volume 101 (10100-10199)
Topic: 10196 - Check The Check
Replies: 77
Views: 23230

Re: 10196 - Check The Check

Code removed after ACC. My WA cause was a function checking if a given (x, y) position is in the chess table and i was checking if (x < 0 || y < 0 || x > 8 || y > 8) return 0 but should been x >= 8 or y >= 8 Anyway. The test case which made me see this error was the following... ........ ......k. .....
by KaDeG
Tue Jul 22, 2008 12:07 am
Forum: Off topic (General chit-chat)
Topic: Support for Functional programming languages
Replies: 1
Views: 34771

Re: Support for Functional programming languages

I guess ACM sticks in C, C++, Pascal and JAVA because this are the ICPC languages(I think). But I guess other languages wouldn't hurt. LISP support would be a nice idea!
by KaDeG
Sun Jul 13, 2008 7:30 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 30521

Palindromes 401 WA

Hello, I tried solving Palindromes(401) problem. But keep getting Wrong Answer although I searched the forums for test cases and in all of them my code worked correct. Here is my code: #include <stdio.h> #include <string.h> /* check if a given string is palindrome */ int isPalindrome(char *s) { int ...
by KaDeG
Sat Jul 28, 2007 11:52 am
Forum: C
Topic: About EOF
Replies: 3
Views: 5549

Although as I know gets can be used to uva problems it is not recommended for programming. Just see this(from GCC): /tmp/ccSVOabh.o: In function `main': gets.c:(.text+0x1e): warning: the `gets' function is dangerous and should not be used. so I would using something else. It's better using fgets lik...
by KaDeG
Fri Apr 13, 2007 10:45 pm
Forum: Volume 103 (10300-10399)
Topic: 10346 - Peter's Smokes
Replies: 46
Views: 15805

yeah, fixed and got AC
thanks :D
by KaDeG
Fri Apr 13, 2007 7:02 pm
Forum: Volume 103 (10300-10399)
Topic: 10346 - Peter's Smokes
Replies: 46
Views: 15805

10346 WA

I have made the 10346 problem but got Wa. I searched the forums and found the smart formula: sumciggaret=n+(n-1)/(k-1); I did this and got AC. The problem is with my code, the first idea i had i got WA, the problem testcases works fine and also some other testecase i created from my AC program are O...
by KaDeG
Wed Apr 11, 2007 9:01 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 30724

Here: if(b==d && prime(b)==b)printf("%d is prime.\n",b); else if(prime(b)==b && prime(d)==d)printf("%d is emirp.\n",b); else if(prime(b)==b || prime(d)==d)printf("%d is prime.\n",b); else printf("%d is not prime.\n",b); I don't think you need to check if b==d , also see if (prime(b)== 0 not b. (If i...
by KaDeG
Sun Mar 25, 2007 7:15 pm
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 21399

ok, thanks
by KaDeG
Sat Mar 24, 2007 6:35 pm
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 21399

494 - Kindergarten Counting Game

Hello,
I checked the forums for same test cases over 494 Kindergarten Countring problem...
and everything works fine! but i got WA!
Here is my C Code:
code deleted

Any ideas why i got wa?
by KaDeG
Thu Mar 08, 2007 11:47 pm
Forum: Off topic (General chit-chat)
Topic: Problem
Replies: 7
Views: 17202

Now i see that i can visit the pages from
http://online-judge.uva.es
but not acm.uva.es but don't know why?
by KaDeG
Wed Mar 07, 2007 11:18 pm
Forum: Off topic (General chit-chat)
Topic: Problem
Replies: 7
Views: 17202

Problem

Hello, yesterday I was submitting problems in acm.uva.es/problemset, at once i coudn't see the page! Page wasn't found as it was down, I told a friend but everything works fine for him, for me too, I could visit all the sites in net but not acm.uva.es, it couldn't be found! I'm now connected through...
by KaDeG
Mon Mar 05, 2007 1:32 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 65667

ok, the problem was only the Max of the tables i make the tables at 110 and it was accepted, thanks, real thanks arif pasha, it's also works with Tables with 101!
by KaDeG
Sun Mar 04, 2007 9:45 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 65667

10189 WA

I have made the minsweeper program but i got WA,
I checked some testcases I found in the forums and everything works fine,
any ideas where the probelm is?

Code: Select all

Code, deleted, thanks 
I'm a bit complicate with all thes \n that can give a WA, any suggestion would be very hepful, thanks.

Go to advanced search