## Search found 9 matches

Thu Oct 16, 2008 4:58 pm
Forum: Volume 114 (11400-11499)
Topic: 11475 - Extend to Palindrome
Replies: 32
Views: 13576

### Re: 11475 - Extend to Palindromes

i solved this using kmp string matching algorithm in 0.020 seconds
Fri Oct 10, 2008 1:03 pm
Forum: Volume 101 (10100-10199)
Topic: 10199 - Tourist Guide
Replies: 57
Views: 30682

### Re: 10199 - Tourist Guide

tnx sunny it helps me a lot !
Thu Oct 09, 2008 4:32 pm
Forum: Volume 114 (11400-11499)
Topic: 11491 - Erasing and Winning
Replies: 14
Views: 6248

### Re: 11491 - Erasing and Winning

hi
why TLE ?
is there any infinite loop in my algorithm ? or there is a problem about my algorithm ?
thnx

Code: Select all

``````ACC
``````
Sat Sep 13, 2008 12:27 pm
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 15587

### Re: 10195 - The Knights Of The Round Table

Wed Sep 10, 2008 12:21 am
Forum: Volume 101 (10100-10199)
Topic: 10180 - Rope Crisis in Ropeland!
Replies: 39
Views: 21306

### Re: 10180 - Rope Crisis in Ropeland !

i love this problem , i got AC in first try . my program didnt work for some inputs with high precision in this thread , you dont need such precion. i use e-7 as epsilon.
Mon Sep 08, 2008 2:19 pm
Forum: Volume 4 (400-499)
Topic: 434 - Matty's Blocks
Replies: 13
Views: 3499

### Re: 434 - Matty's Blocks

I agree with stcheuung. This problem is so simple.
Sat Sep 06, 2008 4:18 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29095

### Re: 10215 - The Largest/Smallest Box...

add results to epsilon and then print them
thanks jan
Sat Sep 06, 2008 12:53 pm
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 15587

### Re: 10195 - The Knights Of The Round Table

try to use gcc and set compiler flags to -lm -lcrypt -O2 -pipe -ansi -DONLINE_JUDGE for c .
one time i have a compilation error and it was in comment lines .
Fri Aug 15, 2008 9:07 pm
Forum: Volume 101 (10100-10199)
Topic: 10199 - Tourist Guide
Replies: 57
Views: 30682

### Re: 10199 - Tourist Guide

can anybody help me , my program passes all the inputs in this thread . #include<iostream> #include<list> #include<map> #include<string> #include<cstdlib> using namespace std ; #define V 101 typedef list<int> lis ; int Dis[V] ; int Min[V] ; int disco ; list<int> Tree[V] ; // childs of each vertex in...