Search found 44 matches

by @li_kuet
Thu Dec 04, 2014 12:55 pm
Forum: Volume 128 (12800-12899)
Topic: 12836 - Gain Battle Power
Replies: 3
Views: 1607

Re: 12836 - Gain Battle Power

May be you are right Masum :)
Let me know if you find any way (y)
by @li_kuet
Sat Nov 29, 2014 3:56 pm
Forum: Volume 128 (12800-12899)
Topic: 12836 - Gain Battle Power
Replies: 3
Views: 1607

Re: 12836 - Gain Battle Power

I used LIS and LDS for calculating the power of a Death Eater. Then i used a greedy technique to split the sequence. getting WA :( Is my method wrong ? Give me some hint please ... #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef unsigned long long int ull; const doubl...
by @li_kuet
Fri Jul 25, 2014 4:21 pm
Forum: Volume 108 (10800-10899)
Topic: 10880 - Colin and Ryan
Replies: 45
Views: 27843

Re: 10880 - Colin and Ryan

Input :

Code: Select all

1
2 0
Output :

Code: Select all

Case #1: 1 2
by @li_kuet
Thu Jul 24, 2014 4:27 pm
Forum: Volume 115 (11500-11599)
Topic: 11590 - Prefix Lookup
Replies: 0
Views: 904

11590 - Prefix Lookup

Input :

Code: Select all

5 4
0*
1*
11*
011*
1110*
6
*
0*
1*
11*
011*
1110*

1 64
111111111111111111111111111111111111111111111111111111111111111*
1
*

0 0
Output should be :

Code: Select all

0
6
4
3
2
1

18446744073709551614

by @li_kuet
Sun Jul 20, 2014 3:08 pm
Forum: Volume 111 (11100-11199)
Topic: 11171 - SMS
Replies: 8
Views: 5118

Re: 11171 - SMS

Why am i getting WA ?
It's okay with brianfry713 testcases. What am i missing :(

Code: Select all

AC :)
by @li_kuet
Tue Jul 08, 2014 9:46 pm
Forum: Volume 124 (12400-12499)
Topic: 12424 - Answering Queries on a Tree
Replies: 0
Views: 519

12424 - Answering Queries on a Tree

Can anybody give me some critical input please :)
I'm getting WA :( :(
I used Heavy Light Decomposition + LCA + BIT
Here is my code :

Code: Select all

Silly Mistake :(
Got Accepted :)
by @li_kuet
Sat Jun 14, 2014 5:19 am
Forum: Volume 113 (11300-11399)
Topic: 11307 - Alternative Arborescence
Replies: 22
Views: 10814

Re: 11307 - Alternative Arborescence

Thanks brianfry713 :)
Now i understand, why more than 2 colors needed :)
by @li_kuet
Sat May 31, 2014 6:05 pm
Forum: Volume 116 (11600-11699)
Topic: 11655 - Waterland
Replies: 3
Views: 1259

11655 - Waterland

In case you are wondering for more input :

Code: Select all

1
5 7
1 2
1 3
3 2
3 4
2 5
2 4
4 5
Output :

Code: Select all

Case 1: 15 5
by @li_kuet
Tue May 27, 2014 9:37 am
Forum: Volume 113 (11300-11399)
Topic: 11307 - Alternative Arborescence
Replies: 22
Views: 10814

Re: 11307 - Alternative Arborescence

I have already solved the problem. But i'm still wondering why it is necessary to use more than two colors to color a tree :( As we know a tree is Bi-Colorable, so wouldn't it be enough to use only two color ?? Can anyone give me an example where using three or more color is optimal than using two c...
by @li_kuet
Mon Feb 24, 2014 12:28 pm
Forum: Volume 9 (900-999)
Topic: 906 - Rational Neighbor
Replies: 3
Views: 3344

Re: 906-Rational Neighbor

Who are getting WA try Input:

Code: Select all

1040 65
.01
Output:

Code: Select all

1601 100
by @li_kuet
Tue Feb 11, 2014 10:46 pm
Forum: Volume 100 (10000-10099)
Topic: 10086 - Test the Rods
Replies: 10
Views: 4504

Re: 10086 - Test the Rods

What is wrong with my code ??
Any tricky case ??
Help please ...

Code: Select all

AC
Made an stupid mistake :P
Can try this input who r getting WA

Code: Select all

5 0
1
5
10 20 30 20 50
40 25 10 50 20
Output : 50
by @li_kuet
Tue Feb 04, 2014 10:37 pm
Forum: Volume 8 (800-899)
Topic: 859 - Chinese Checkers
Replies: 14
Views: 6431

Re: 859 - Chinese Checkers

Thanks brianfry713 :)
Got AC :)
by @li_kuet
Sat Feb 01, 2014 2:18 pm
Forum: Volume 8 (800-899)
Topic: 859 - Chinese Checkers
Replies: 14
Views: 6431

Re: 859 - Chinese Checkers

Can't find the reason of WA :(
what am i missing ??

Code: Select all

Accepted :)
by @li_kuet
Sun Jul 21, 2013 3:51 pm
Forum: Volume 7 (700-799)
Topic: 790 - Head Judge Headache
Replies: 49
Views: 14437

Re: 790 - Head Judge Headache

Try this Input: 1 25 G 9:99 N Output should be: RANK TEAM PRO/SOLVED TIME 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 Hope this will help :)
by @li_kuet
Thu Jul 18, 2013 3:31 am
Forum: Volume 123 (12300-12399)
Topic: 12348 - Fun Coloring
Replies: 5
Views: 4130

Re: 12348 - Fun Coloring

Careful !!! There shouldn't be any newline in the output .. it will cost WA :)

Go to advanced search