Search found 3 matches

by kev_yu
Sat Jan 04, 2014 6:13 am
Forum: Volume 4 (400-499)
Topic: 452 - Project Scheduling
Replies: 23
Views: 10050

Re: 452, Why WA

I don't understand why I get TLE my algo should run with O(V+E) time complexity. I have test the the test case given here and got it right. First I run topological sort with DFS then DP bottom up Here is my code #include <iostream> #include <cstdio> #include <stdlib.h> #include <vector> #include <qu...
by kev_yu
Thu Jan 02, 2014 12:14 pm
Forum: Volume 2 (200-299)
Topic: 247 - Calling Circles
Replies: 21
Views: 8550

Re: 247 - Calling Circles

Got Accepted now. I changed all the C++ I/O for C I/O, change all the cin for scanf, and cout for printf, and quit all the classes of the standard library, such as map, vector, etc.. and use simple arrays. Hope it helps. I really don't know why this happens, but it worked. I replace every vector.as...
by kev_yu
Sun Dec 29, 2013 8:51 am
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 40504

Re: 929 - Number Maze

Hello , I got TLE, I have used 10 queues and getchar() but still got TLE. Is there something wrong with my code? #include <iostream> #include <cstdio> #include <stdlib.h> #include <vector> #include <queue> #include <utility> #include <algorithm> #include <math.h> using namespace std; typedef pair<in...

Go to advanced search