## Search found 47 matches

Thu Sep 11, 2008 10:33 am
Forum: Volume 102 (10200-10299)
Topic: 10219 - Find the ways !
Replies: 33
Views: 10871

### Re: 10219 - Find the Ways !

hi..

I got WA several times.. but I don't really know... why WA ?? help me please..

Code: Select all

``````cutted after AC..
I just replaced data type from double to long double...  :-?
``````
Fri Jul 06, 2007 3:53 am
Forum: Volume 112 (11200-11299)
Topic: 11221 - Magic square palindromes.
Replies: 58
Views: 22040
hm... mmonish...

Is the 2 case right ??

The sentence of the second way in problem statement is not equal to original sentence.
Fri Jul 06, 2007 2:31 am
Forum: Volume 112 (11200-11299)
Topic: 11221 - Magic square palindromes.
Replies: 58
Views: 22040

### 11221 - Magic square palindromes.

hi all...

I got WA

In my thought, this problem is easy... but I got WA

I don't know where is wrong...

Could you give me some sample inputs and outputs ??

Sun May 27, 2007 5:04 pm
Forum: Volume 112 (11200-11299)
Topic: 11207 - The easiest way
Replies: 27
Views: 13884
helloneo...

Thanks....I missed it... Thanks...
Sun May 27, 2007 3:53 pm
Forum: Volume 112 (11200-11299)
Topic: 11207 - The easiest way
Replies: 27
Views: 13884
little joey wrote: There is a third way. Think about it...
well... You mean the case of this ??

case 3.

If it is right, it is equal to the case 1 when h is setted with smaller value...

Is there another way ??? Could you give the sample case ???

Sun May 27, 2007 2:35 pm
Forum: Volume 112 (11200-11299)
Topic: 11207 - The easiest way
Replies: 27
Views: 13884
hi all... why WA ??? It seems a very easy problem. But, I got WA :( In my thought, the case of arrangement is only 2 as below.. case 1. □□□□ case 2. □□ □□ The first case is that one side's length is bigger than 4 times of the other's length. If not, the condition is the second case. My code is follo...
Thu Mar 15, 2007 2:24 am
Forum: Other words
Topic: How to swap two variables... ??
Replies: 4
Views: 3227

I suggested you have to use just 2 statements..

it means you must use 2 equal signs...

I know using bitwise operators suggested by Leonid..

I'm sorry but it's not the wanted answer

PS.. Sorry for poor english
Tue Mar 13, 2007 10:05 am
Forum: Other words
Topic: How to swap two variables... ??
Replies: 4
Views: 3227

### How to swap two variables... ??

hi all... I got a quiz... How to swap two variables ??? only use two variables and two statements... In general, the code is following... temp = a; a = b; b = temp; how to swap two variables using only two variables and two statements ?? do not use a temporary variable.. and 3 statements...
Tue Nov 21, 2006 5:24 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 65393
this is my code... #include <stdio.h> int isPrime(int n); char prime[10001]; void main(void) { int i; int a, b, cnt; double ret; for ( i = 0 ; i < 40 ; i++ ) prime[i] = 1; for ( i = 40 ; i <= 10000 ; i++ ) prime[i] = isPrime( i * i + i + 41 ); while ( scanf("%d %d", &a, &b) != EOF ) { cnt = 0; for (...
Mon Nov 20, 2006 4:15 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 65393
hi.. all a few month ago, i had got AC.. but after rejudging, i am WA T.T why WA ?? I have a few test cases... what is the output for the input ?? 0 43 0 44 1 1101 my answer is .. 95.46 93.33 56.59 is this correct ??? T.T or.. i want to get a few sample input and output for solving this problem.. he...
Thu Apr 13, 2006 7:32 pm
Forum: Bugs and suggestions
Topic: How do I do ?
Replies: 2
Views: 2265

### How do I do ?

Tue Feb 14, 2006 6:43 pm
Forum: Volume 100 (10000-10099)
Topic: 10000 - Longest Paths
Replies: 160
Views: 38845

### 10000 Longest Paths - TLE

hi all... I solved this problem(10000-longest paths) using back-tracking algorithm technic... it gave me correct answers for the sample input.. but.. judger replied the code was TLE... it is so fool of me... :cry: how do I speed up using back-tracking algorithm technic ?? and would you give me a sam...
Wed Jan 11, 2006 3:35 pm
Forum: Volume 4 (400-499)
Topic: 489 - Hangman Judge
Replies: 52
Views: 15830
I'm sorry ..

once, I was incorrect in printing the output string...

good luck!!
Fri Jan 06, 2006 2:26 pm
Forum: Volume 4 (400-499)
Topic: 489 - Hangman Judge
Replies: 52
Views: 15830

### [489] need more inputs & outputs

hi...

I tested some inputs and outputs in this forum...

the all answers are correct exactly...

but!! I got WA

the code is below....

Code: Select all

``````deleted after Accepted
``````
Mon Dec 12, 2005 2:11 pm
Forum: Volume 109 (10900-10999)
Topic: 10963 - The Swallowing Ground
Replies: 47
Views: 13232
wow!! thanks you very much, little joey...

you're right...