Search found 9 matches

by pfiesteria
Sun Mar 12, 2017 9:41 am
Forum: Volume 103 (10300-10399)
Topic: 10363 - Tic Tac Toe
Replies: 54
Views: 24046

Re: 10363 - Tic Tac Toe

Finally I got AC using Python :D . But I suppose input data may have garbage in the last (e.g. additional space), so length for every row input is NOT 3...
by pfiesteria
Fri Jul 18, 2014 3:10 am
Forum: Volume 119 (11900-11999)
Topic: 11995 - I Can Guess the Data Structure!
Replies: 60
Views: 6548

Re: 11995 - I Can Guess the Data Structure!

x is not unique.
So
input:

Code: Select all

4
1 1
1 1
2 1
2 1
output:

Code: Select all

not sure
by pfiesteria
Sun Jan 30, 2011 1:55 pm
Forum: Volume 119 (11900-11999)
Topic: 11902 - Dominator
Replies: 20
Views: 9019

Re: 11902 - dominator

Thanks to Mehadi, your WA code active me write AC code.
But I still don't know what bugs in your WA code.
by pfiesteria
Sat Mar 22, 2008 5:47 am
Forum: Volume 101 (10100-10199)
Topic: 10109 - Solving Systems of Linear Equations
Replies: 18
Views: 8723

why WA?

my WA code is here, why got WA??? could someone give me more test case and correct solution? really need help.. PS. Finally I got AC, and remove my code, I think WA due to wrong blank line during output Try the cases. Input: 3 4 4 0 1 1 1 3 0 0 0 0 0 0 0 0 1 1 0 1 1 2 9 0 following is my program re...
by pfiesteria
Sun Mar 16, 2008 12:16 pm
Forum: Volume 114 (11400-11499)
Topic: 11417 - GCD
Replies: 11
Views: 5754

emotional blind wrote:your GCD function doesn't return if x!=0 && y!=0.

change

Code: Select all

   if(x<y)GCD(x,y%x);
   else GCD(y,x%y); 
to

Code: Select all

   if(x<y)return GCD(x,y%x);
   else return GCD(y,x%y); 
Yes, you are right! thanks a lot!
by pfiesteria
Sun Mar 16, 2008 8:07 am
Forum: Volume 114 (11400-11499)
Topic: 11417 - GCD
Replies: 11
Views: 5754

11417 - GCD

solved!
    by pfiesteria
    Sun Mar 16, 2008 6:30 am
    Forum: C++
    Topic: void main on-line judge compiler error?
    Replies: 2
    Views: 1886

    void main on-line judge compiler error?

    why following code on-line judge compiler error?

    Code: Select all

    void main(){
    }
    
    when I using following code, it's ok.

    Code: Select all

    int main(){
    return 0;
    }
    
    I want to ask, when I using int main(),
    what value should I return?return 0? or other value?
    and why I can't use void main instead of int main?
    by pfiesteria
    Mon Aug 13, 2007 10:53 am
    Forum: Volume 1 (100-199)
    Topic: 109 - SCUD Busters
    Replies: 96
    Views: 24143

    Re: [109] SCUD Busters

    hi~ I am trying to solve this problem but I keep receiving WA. I really don't know why my solution doesn't work. In the problem description, Each SCUD missile (anitary leansing niversal estroyer) that lands within the walls of a kingdom destroys that kingdom's power plant (without loss of life). wh...
    by pfiesteria
    Mon Aug 13, 2007 10:50 am
    Forum: Volume 1 (100-199)
    Topic: 109 - SCUD Busters
    Replies: 96
    Views: 24143

    Re: Hi!

    Hi! I am also trying to solve this problem... I don't know what's wrong... If SCUD hits the wall than is it counter as it hit the convex polygon or not ?? Could anyone who got AC tell me what is is output for this input: 4 0 0 1 1 1 0 0 1 4 10 10 20 10 20 20 10 20 -1 1 1 15 10 And could anyone give...

    Go to advanced search