Search found 65 matches

by RC's
Thu Sep 08, 2011 4:52 pm
Forum: Volume 103 (10300-10399)
Topic: 10392 - Factoring Large Numbers
Replies: 14
Views: 9424

Re: 10392 - Factoring Large Numbers

Hi, I'm getting WA. I tried previous cases mentioned in this forum and produced same result, but I still got WA.
My algorithm is to calculate all primes less than 10^6 and try dividing the input.
Anyone can help me? Probably with some I/O cases
Thanks

EDIT : got AC already.. I missed printing "\n ...
by RC's
Mon Dec 14, 2009 8:12 am
Forum: Volume 116 (11600-11699)
Topic: 11623 - Tic Tac Toe
Replies: 6
Views: 4839

Re: 11623 - Tic Tac Toe

Hi jurajz,
I appreciate your help, my code produced the same result as yours for those input cases, but it still gives me WA.
Here is my code :

#include <stdio.h>
#include <memory.h>
#include <math.h>
#include <vector>
#include <algorithm>

using namespace std;

struct cell
{
int horizontal ...
by RC's
Sat Aug 29, 2009 3:37 pm
Forum: Volume 116 (11600-11699)
Topic: 11623 - Tic Tac Toe
Replies: 6
Views: 4839

11623 - Tic Tac Toe

Hi, is there anyone who has critical test case ? I think this problem is not very difficult but I kept getting WA. I used an 2D array to store the number of X or O's diagonally, vertically and horizontally.
by RC's
Wed Mar 25, 2009 5:52 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 55174

Re: 929 - Number Maze

I got TLE for this problem.... I tried implementing queue as in the previous posts said, but I still got TLE. I think there is something wrong with my code. Can anybody help me ?


#include <stdio.h>
#include <memory.h>
#include <limits.h>

struct CNum
{
int number;
int x, y;
};

struct move ...
by RC's
Fri Dec 05, 2008 9:03 am
Forum: Bugs and suggestions
Topic: "You are not authorised to view this resource." errors
Replies: 5
Views: 5361

Re: "You are not authorised to view this resource." errors

For me, in Firefox 3 it works. Maybe you have a computer problem or internet connection problem..
I also get "You are not authorised to view this resource" error the same like you...
Maybe the administrator should take care of this.
by RC's
Tue Aug 26, 2008 11:41 am
Forum: Volume 114 (11400-11499)
Topic: 11461 - Square Numbers
Replies: 15
Views: 10721

Re: 11461 - Square Number

change your void main() into int main()
by RC's
Thu Aug 07, 2008 6:35 pm
Forum: Volume 114 (11400-11499)
Topic: 11473 - Campus Roads
Replies: 9
Views: 2652

Re: 11473 - Campus Roads

Thank you, I got AC now... But I don't know why I got WA in the contest..
by RC's
Thu Aug 07, 2008 4:56 pm
Forum: Volume 114 (11400-11499)
Topic: 11473 - Campus Roads
Replies: 9
Views: 2652

Re: 11473 - Campus Roads

Hm.. My program outputs the same as yours, but I get WA.. Please check this input

5
84 6
-445.13 347.11
727.97 694.64
321.35 -702.51
490.54 475.34
-957.03 -867.61
412.11 154.72
504.52 752.62
-974.73 -571.11
735.84 -286.01
-273.80 918.82
444.89 -821.47
170.29 -766.48
79.71 -20.75
328.25 51.64
831 ...
by RC's
Mon Aug 04, 2008 10:21 pm
Forum: Volume 114 (11400-11499)
Topic: 11473 - Campus Roads
Replies: 9
Views: 2652

Re: 11473 - Campus Roads

Can you please give some input / output for this problem, and of course the output from the input provided by Monsoon ?
by RC's
Mon Aug 04, 2008 10:17 pm
Forum: Volume 113 (11300-11399)
Topic: 11357 - Ensuring Truth
Replies: 12
Views: 5653

Re: 11357 - Ensuring Truth

My program outputs "YES" for your input, but I still get WA.. Any more test cases ?
by RC's
Fri Jun 27, 2008 5:04 am
Forum: Volume 114 (11400-11499)
Topic: 11459 - Snakes and Ladders
Replies: 33
Views: 21398

Re: 11459 - Snakes and Ladders


2


3 5 4
4 5
6 7
5 6
7 5000000000000000000000000000000000000000000000000000000000000000000000
5000000000000000000000000000000000000000000000000000000000000000000000 3000
3
4
5
9


3 1 3
4 20
3
4
5



if there is really a case with snake / ladders like
7 ...
by RC's
Thu Jun 26, 2008 3:01 pm
Forum: Volume 114 (11400-11499)
Topic: 11459 - Snakes and Ladders
Replies: 33
Views: 21398

Re: 11459 - Snakes and Ladders

Robert, during the contest, there are 2 people who got AC on this problem.
You can refer to http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=13&page=show_contest&contest=201
and you will find it.

This is the detail :
98 acmita08 D - Snakes and Ladders Accepted C++ 2 ...
by RC's
Thu Jun 26, 2008 12:26 pm
Forum: Volume 114 (11400-11499)
Topic: 11459 - Snakes and Ladders
Replies: 33
Views: 21398

Re: 11459 - Snakes and Ladders

If we use an array data[101], with index as starting point and its value as end point, I don't think it will be a problem if a square shares more than one endpoint of snake and ladder. Suppose there are 2 snakes, 60 20 and 40 20 which share the same endpoint, we can store it like data[60] = 20 and ...
by RC's
Sun Jun 22, 2008 4:03 am
Forum: Volume 114 (11400-11499)
Topic: 11456 - Trainsorting
Replies: 20
Views: 14950

Re: 11456 - Trainsort

By the way, could you share your algorithm here ? Brute force will certainly get Time Limit Exceeded... :(
by RC's
Tue May 27, 2008 5:45 pm
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 51691

Re: 108, am I on wrong way ?

what do you mean by saying your max depth loop is only 2 ?
Do you mean your program runs in O(n^2) ? It's amazing.
I think O(n^3) and O(n^4) will get AC, and I don't know how to figure an O(n^2) solution..
Maybe you can paste your code here to make it clear.

Go to advanced search