Search found 9 matches

by lionking
Thu Nov 05, 2009 6:28 am
Forum: Volume 115 (11500-11599)
Topic: 11506 - Angry Programmer
Replies: 6
Views: 5724

Re: 11506 - Angry Programmer

I got WA of this code. But I don't understand where I wrong? I have try many test cases, and it all correct could someone help me? thx! #include <stdio.h> #include <string.h> #include <queue> #define MACHINE 100 using namespace std; typedef int graph[MACHINE][MACHINE]; graph C, F, R; bool visit[MACH...
by lionking
Tue Aug 25, 2009 5:06 pm
Forum: Volume 115 (11500-11599)
Topic: 11503 - Virtual Friends
Replies: 49
Views: 17278

Re: 11503 - Virtual Friends

Could someone gives me some I/O? I got WA... here is my code, thx #include <iostream> #include <string> #include <map> #define MAX_PEOPLE 200001 using namespace std ; int *group = new int[MAX_PEOPLE], *table = new int[MAX_PEOPLE]; int check(int x) { int root = table[x]; if(root != x) return (table[x...
by lionking
Sat Aug 22, 2009 3:17 pm
Forum: Volume 115 (11500-11599)
Topic: 11502 - Rocket Stages
Replies: 4
Views: 2586

Re: 11502 - Rocket Stages

Could someone give me some IO?
I got WA...thx
by lionking
Sat Aug 08, 2009 3:29 pm
Forum: Volume 114 (11400-11499)
Topic: 11466 - Largest Prime Divisor
Replies: 29
Views: 15364

Re: 11466 - Largest Prime Divisor

wasir_cse wrote:// Why i got "RE" . Any one can help me please. //
I think your problem similar to mine.

the size of prime array is too large to be allocated!

But I have not yet solve it.

Could someone help us?
by lionking
Fri Aug 07, 2009 7:22 pm
Forum: Volume 115 (11500-11599)
Topic: 11549 - Calculator Conundrum
Replies: 10
Views: 7520

11549 - CALCULATOR CONUNDRUM

could someone give me some IO to test?

I got WA...
by lionking
Tue Jul 28, 2009 5:52 pm
Forum: Volume 115 (11500-11599)
Topic: 11525 - Permutation
Replies: 9
Views: 3268

Re: 11525 - Permutation

I don't understand why this problem can use interval tree to solve it?

Could anyone give me some hint, plz?
by lionking
Mon Mar 23, 2009 3:57 am
Forum: Volume 102 (10200-10299)
Topic: 10238 - Throw the Dice
Replies: 6
Views: 4086

WA

Could someone give me some I/O?

I got so many WA...
by lionking
Thu Mar 05, 2009 3:15 am
Forum: Volume 102 (10200-10299)
Topic: 10238 - Throw the Dice
Replies: 6
Views: 4086

Re: 10238 - Throw the Dice!

Is there any good idea to solve this problem? My method as below: X1 + X2 + ... + Xn = S , 1 <= X1,X2,...,Xn <= F n ? answer is H , but 0 <= X1,...,Xn <= F-1 S-n but Ithink this method still too slow because it need to substract if S-n > F-1 Could anyone hlp me?
by lionking
Tue Feb 17, 2009 6:53 pm
Forum: Volume 110 (11000-11099)
Topic: 11063 - B2-Sequence
Replies: 73
Views: 39598

Re: 11063 - B2-Sequence

could someone tell me why I always get WA?

I have check following terms:
i. the sequence is strickly increase
ii. the first term is larger than 0
iii. all pairwise sums are different

Do I lose something?

plz tell me~~~

thanks!!

Here is my code:

Code: Select all

remove after got AC

Go to advanced search