Search found 4 matches
- Tue Aug 08, 2006 4:23 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11060 - Beverages
- Replies: 96
- Views: 47348
(my 3rd sample output is: apple-juice wine vodka beer martini rum whiskey cachaca gin ). Wait... where have you lost tequila? :P Sorry, ive pasted you a wrong ouput, my actually output says: apple-juice wine vodka beer martini rum tequila whiskey cachaca gin. Is that a correct answer? Can u help me...
- Mon Aug 07, 2006 1:35 am
- Forum: Volume 110 (11000-11099)
- Topic: 11060 - Beverages
- Replies: 96
- Views: 47348
Hi all. I did a Topollogical Sort as follows and got WA: #include <stdio.h> #include <map> #include <string.h> using namespace std; char list[101][60]; int n,m; int mat[101][101]; int pos(char a[]){ int i; for(i=0;i<n;i++){ if(strcmp(a,list[i])==0) return i; } } int num[101]; int ts(char a[]){ int i...
- Wed Aug 02, 2006 5:57 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11002 - Towards Zero
- Replies: 39
- Views: 21603
- Tue Aug 01, 2006 9:16 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11002 - Towards Zero
- Replies: 39
- Views: 21603
Hi. I've tried to use some kind of memoizaton, using a bool array for each square in the board ( usd ) to know all sums that can be reached to that square. I've tried all test cases but still WA... can u help me? #include <stdio.h> #include <string.h> int NO=-10000; const int P=500; const int N=1000...