Search found 4 matches
- Tue Sep 30, 2008 6:53 pm
- Forum: Volume 3 (300-399)
- Topic: 309 - FORCAL
- Replies: 6
- Views: 1890
309 why WA!!!
This is a simple problem and thats why I am wondering why I am getting a WA here is how I work on it while ( NOT EOF ) read a complete block and save it in a vector for each line in the block process the line till the end of it or till U find a token error- if token error ignore the rest of the bloc...
- Mon Oct 22, 2007 1:57 am
- Forum: Volume 7 (700-799)
- Topic: 762 - We Ship Cheap
- Replies: 51
- Views: 21416
by the way I am using a vector to take the input and I am using BellmanFord to calculate the path not BFS (I am testing my Bellman Ford ) and this is he code #include<iostream> #include<vector> #include<map> #include<string> using namespace std; #define oo 100000000 struct edge{ int source,dest,cost...
- Sun Oct 21, 2007 4:58 am
- Forum: Volume 7 (700-799)
- Topic: 762 - We Ship Cheap
- Replies: 51
- Views: 21416
- Sun Aug 20, 2006 11:01 pm
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 43569
this is my answer for the test cases that CDiMa has put and my code is AC :D so I think those are the right answers Case 1: 5 nodes not reachable from node 35 with TTL = 2. Case 2: 1 nodes not reachable from node 35 with TTL = 3. Case 3: 8 nodes not reachable from node 1 with TTL = 1. Case 4: 5 node...