Search found 3 matches

by losskid
Thu Aug 07, 2003 4:11 am
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 12825

120 wa :(

//please help #include <iostream> #include <strstream> using namespace std; int cake[100]; int nCake; int ReadCakes() { nCake=0; char buf[1024]; if (cin.getline(buf,1024)){ istrstream input(buf); int diam; while (input >> diam){ nCake++; cake[nCake] = diam; } return 1; } else{ return 0; } } int sear...
by losskid
Wed Aug 06, 2003 4:58 pm
Forum: Volume 4 (400-499)
Topic: 469 - Wetlands of Florida
Replies: 63
Views: 20854

469 wa help

// i try many times but got wa who can help me #include <iostream> #include <stdio.h> using namespace std; char Land[110][110]; char templ[110][110]; int row,col; char s[110]; int x,y; int nLa; void paint(int x,int y) { templ[x][y] = 'L'; nLa++; if (templ[x+1][y]=='W'&&x+1>=0&&x+1<row&&y>=0&&y<col) ...
by losskid
Mon Jul 28, 2003 7:23 am
Forum: Volume 6 (600-699)
Topic: 624 - CD
Replies: 77
Views: 32998

624CD

i cannot find what is wrong with my code #include <iostream> #include <math.h> using namespace std; const int maxLen = 1000; int m[maxLen][maxLen]; int nMusic; int Vtape; int VMusic[maxLen]; int x[maxLen]; int answer; int max(int a,int b) { if (a>b) return a; else return b; } void solve() { int i,j;...

Go to advanced search