Search found 7 matches
- Thu Aug 12, 2004 3:34 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10297 - Beavergnaw
- Replies: 13
- Views: 6892
10297 -- need formula
I still cant figur out the formula for this problem.Can anyone give me some hints??THX a lot !!
- Mon Aug 02, 2004 7:25 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10297 - Beavergnaw
- Replies: 13
- Views: 6892
- Mon Aug 02, 2004 6:11 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 67096
10189 -- WA
[cpp]#include <iostream> using namespace std; int main() { int n,m,i,j,count=1,flag=0; char a[101][101]; int b[101][101]={0}; while(cin>>n>>m) { if(n==0&&m==0) break; for(i=0;i<n;i++) for(j=0;j<m;j++) { cin>>a [j]; } for(i=1;i<n-1;i++) for(j=1;j<m-1;j++) { if(a [j]=='*') b [j]=9; else if(a [j]=='.')...
- Sat Jul 31, 2004 7:57 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10297 - Beavergnaw
- Replies: 13
- Views: 6892
10297 - Beavergnaw
Maybe I'm not understand the problem thoroughly but I don't know how to caolculate the volumn of 2 cones.Does the cylinder in the center of "D"?
THX...
THX...
- Sat Jul 31, 2004 8:03 am
- Forum: Volume 105 (10500-10599)
- Topic: 10550 - Combination Lock
- Replies: 24
- Views: 20703
10550 -- WA
[cpp]#include <iostream.h> #include <stdio.h> int main() { int a,b,c,d,sum; while(cin>>a>>b>>c>>d) { if(a==0&&b==0&&c==0&&d==0) break; sum=1080+(120+a-2*b+2*c-d)*9; cout<<sum<<endl; } return 0; }[/cpp] I dont know where goes wrong but I got WA all the time,can u give me some test data??thx!
- Fri Jul 30, 2004 12:53 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10062 - Tell me the frequencies!
- Replies: 235
- Views: 36656
- Fri Jul 30, 2004 5:19 am
- Forum: Volume 100 (10000-10099)
- Topic: 10062 - Tell me the frequencies!
- Replies: 235
- Views: 36656
10062 -- WA
I tried hundreds of times but still got WA in 10062,can u help me to check my code? [cpp]#include <iostream.h> #include <stdio.h> #include <math.h> #include <string.h> int main() { char a[1024]; int len,i,str[2][256]={0,0},n,min=1000,temp,k,flag=0; while(gets(a)!=NULL) { len=strlen(a); for(i=0;i<len...