Hello all,
I'm trying to solve this problem:
http://acm.pku.edu.cn/JudgeOnline/problem?id=1018
This problem is here too:
http://acm.tju.edu.cn/toj/showp1258.html
but I got WA every time.
I posted it here, because I have learned many things from this forum before, but I didn't see that websites ...
Search found 26 matches
- Sat Dec 22, 2007 4:48 pm
- Forum: Other words
- Topic: Communication System-pku 1018
- Replies: 0
- Views: 2147
- Fri Nov 10, 2006 4:19 pm
- Forum: Volume 9 (900-999)
- Topic: 911 - Multinomial Coefficients
- Replies: 15
- Views: 7720
- Fri Nov 10, 2006 1:18 pm
- Forum: Volume 9 (900-999)
- Topic: 911 - Multinomial Coefficients
- Replies: 15
- Views: 7720
I need your help to find my mistake.I'm getting WA and realy don't know where is the bug.
Thanks in advance
Code: Select all
removed
- Fri Nov 10, 2006 1:13 pm
- Forum: Volume 9 (900-999)
- Topic: 967 - Circular
- Replies: 23
- Views: 15064
- Thu Nov 09, 2006 10:59 pm
- Forum: Volume 9 (900-999)
- Topic: 967 - Circular
- Replies: 23
- Views: 15064
could someone please help me and tell me what's wrong with this code?
I'm getting WA.It is an easy problem I think so.
I'm getting WA.It is an easy problem I think so.
Code: Select all
removed
- Sat Oct 28, 2006 11:08 am
- Forum: Volume 111 (11100-11199)
- Topic: 11136 - Hoax or what
- Replies: 31
- Views: 23104
- Thu Oct 19, 2006 8:08 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10622 - Perfect P-th Powers
- Replies: 47
- Views: 31353
WA_please help
I'm getting WA and don't undrestand where is my mistake.could someone please help me?
my algorithm:
1)producing prime numbers up to the sqrt of MAX_int(our limit)
2)when reading an input produce all powers of its primefactors and store them
3)getting gcd between powers
4)(if n<0 and gcd%2==0 )gcd/=2 ...
my algorithm:
1)producing prime numbers up to the sqrt of MAX_int(our limit)
2)when reading an input produce all powers of its primefactors and store them
3)getting gcd between powers
4)(if n<0 and gcd%2==0 )gcd/=2 ...
- Sun Sep 24, 2006 10:10 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11096 - Nails
- Replies: 28
- Views: 19121
- Sat Sep 23, 2006 9:41 am
- Forum: Volume 110 (11000-11099)
- Topic: 11096 - Nails
- Replies: 28
- Views: 19121
11096 - Nails
I'm getting WA.Where is my mistake?Is this problem convex hull?
Please help.Thanks in advance.
Code: Select all
removed
- Fri Sep 22, 2006 10:20 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11099 - Next Same-Factored
- Replies: 24
- Views: 13148
- Fri Sep 22, 2006 8:47 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11099 - Next Same-Factored
- Replies: 24
- Views: 13148
I'm getting WA.Where is my mistake?Please help.
Thanks in advance
Code: Select all
removed
- Thu Sep 21, 2006 8:52 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11099 - Next Same-Factored
- Replies: 24
- Views: 13148
11099 - Next Same-Factored
I need a hint to solve this problem whitout getting tle.
I used these 2 methds but both of them get tle.
1)produce and keep all of the prime factors of all numbers up to 2000000(like Eratosten algorithm)
2)produce and keep all of the prime factors of all numbers up to 1000000(like Eratosten ...
I used these 2 methds but both of them get tle.
1)produce and keep all of the prime factors of all numbers up to 2000000(like Eratosten algorithm)
2)produce and keep all of the prime factors of all numbers up to 1000000(like Eratosten ...
- Tue Sep 12, 2006 12:12 am
- Forum: Volume 1 (100-199)
- Topic: 147 - Dollars
- Replies: 233
- Views: 50872
- Fri Aug 25, 2006 4:21 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10296 - Jogging Trails
- Replies: 7
- Views: 15715
- Wed Aug 23, 2006 10:25 am
- Forum: Volume 6 (600-699)
- Topic: 694 - The Collatz Sequence
- Replies: 46
- Views: 21935