## Search found 51 matches

Sat Apr 30, 2011 7:29 am
Forum: Volume 119 (11900-11999)
Topic: 11991 - Easy Problem from Rujia Liu?
Replies: 32
Views: 8689

### Re: 11991 - Easy Problem from Rujia Liu?

@ rujialiu I try to solved this problem this way: i take 3 parallel array 1=> For frequency of each number 2=>For last position of given numbers 3=>For parent of each index of given numbers. Now when i take a query only i take the last position of this number and from last to climbing first position...
Fri Jan 21, 2011 10:57 am
Forum: Volume 118 (11800-11899)
Topic: 11893 - Fabulous DAGy
Replies: 10
Views: 3288

### Re: 11893 - Fabulous DAGy

Hi wazaaaap
try to sloved this problem O( N ( M+N ) ) with respect to some condition.

Mon Jan 10, 2011 2:27 pm
Forum: Volume 119 (11900-11999)
Topic: 11902 - Dominator
Replies: 20
Views: 9019

### Re: 11902

try this case
1
4
1 1 0 1
1 0 1 1
1 1 1 1
1 1 0 1
acc output
Case 1:
+-------+
|Y|Y|Y|Y|
+-------+
|N|Y|Y|N|
+-------+
|N|N|Y|N|
+-------+
|N|N|N|Y|
+-------+
Thu Jan 06, 2011 3:24 pm
Forum: Volume 118 (11800-11899)
Topic: 11857 - Driving Range
Replies: 21
Views: 7638

### Re: 11857 - Driving Range

You can use adjacent list or structure ot STL container like as vector
Tue Nov 16, 2010 6:13 pm
Forum: Volume 118 (11800-11899)
Topic: 11876 - N + NOD (N)
Replies: 9
Views: 4428

### Re: 11876 - N + NOD(N)

Hi " ItaloSpedini " This is very simple Number Theory Problem I sloved This problem this way :
1=> generate the divisor sequence
2=>from 1to 1000000 set a vector with 0 and 1
3=> cumulative sum of set vector
Then O(1) produce the output.

Sun Nov 14, 2010 10:00 am
Forum: Volume 118 (11800-11899)
Topic: 11838 - Come and Go
Replies: 22
Views: 7255

### Re: 11838 - Come And Go

This problem also sloved by simple dfs or mst
Thu Nov 04, 2010 6:01 am
Forum: Volume 118 (11800-11899)
Topic: 11857 - Driving Range
Replies: 21
Views: 7638

### Re: 11857 - Driving Range

HI In your link funtion return int But you return nothing

Thu Oct 07, 2010 10:51 am
Forum: Volume 118 (11800-11899)
Topic: 11858 - Frosh Week
Replies: 20
Views: 3419

### Re: 11858 - Frosh Week

HI "Igor9669" now i got Acc
thanks for your help
Thu Oct 07, 2010 4:50 am
Forum: Volume 118 (11800-11899)
Topic: 11858 - Frosh Week
Replies: 20
Views: 3419

### 11858 - Frosh Week

I slove this problem using merge sort but still now Wrong answer please give me any idea about this problem

Sun Jun 27, 2010 3:43 am
Forum: Volume 9 (900-999)
Topic: 902 - Password Search
Replies: 68
Views: 31734

### Re: 902 - Password Search

I try to sloved this problem using Trie but it Wong answer.
Please give me some critical case

Sat Jan 30, 2010 9:46 pm
Forum: Volume 117 (11700-11799)
Topic: 11747 - Heavy Cycle Edges
Replies: 11
Views: 3894

### Re: 11747 - Heavy Cycle Edges

Try this case

Input:
6 7
0 1 10
1 2 12
2 4 3
4 3 2
3 2 1
3 4 10
3 4 11
My Ac c code give
3 10 11
But your code give
11
print all the eliminated edge
Sun Jan 10, 2010 7:15 am
Forum: Volume 117 (11700-11799)
Topic: 11733 - Airports
Replies: 23
Views: 7265

### 11733 - Airports

I can not find my wrong in simple MST problem

Please give me some I/O

Tue Oct 06, 2009 6:42 pm
Forum: Volume 108 (10800-10899)
Topic: 10819 - Trouble of 13-Dots
Replies: 67
Views: 35761

### Re: 10819 - Trouble of 13-Dots

WHY THIS CASE OUTPUT IS: 2
1900 3
2000 5
1950 1
101 1

PLEASE EXPLAIN & CLEAR ME

MY CODE GIVE : 5
Wed Sep 30, 2009 8:50 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 10376

### Re: 11686 Runtime error Here

TRY THIS CASE
4 3
4 1
1 2
3 2
MY Acc code give :
3
4
1
2
Mon Sep 07, 2009 7:15 pm
Forum: Volume 115 (11500-11599)
Topic: 11512 - GATTACA
Replies: 23
Views: 9254

### Re: 11512 - GATTACA

remove................