Search found 38 matches
- Mon Mar 01, 2004 6:32 am
- Forum: Volume 101 (10100-10199)
- Topic: 10196 - Check The Check
- Replies: 77
- Views: 23711
10196 : check the check WA.. Please explain the logic..
What could be wrong.. I get WA even when i have checked for all the conditions i can think of.. I do not check for kings move because both kings can never be in a check... Please tell me a case where my program fails... or if any of you have a different approach... Thx Aakash [cpp] # include<iostre...
- Wed Feb 25, 2004 6:33 am
- Forum: Volume 1 (100-199)
- Topic: 160 - Factors and Factorials
- Replies: 205
- Views: 24629
160: Factors and factorials..... WA Help Please... (Now AC)
What is wrong with my code.. I guess allignement.. It seems to work fine and logic is simple and infact it also works for inputs greater than 100 but i go WA... Please can anyone help me or tell me in which case it fails.. Thx a lot in advance Aakash [cpp] Code removed. Never mind i got it accepted....
- Sun Feb 22, 2004 2:12 am
- Forum: Volume 4 (400-499)
- Topic: 447 - Population Explosion
- Replies: 23
- Views: 2304
447- WA Why..
This problem seems to be very simple. all i have to do is run the simulation of the game of life evolution.. But i got a WA.. ANy trick inputs that might make me get a WA.. I am also posting the code.. Plz help me out guys with my code .... Or tell me any approach u used.... Thx Aakash [cpp] # inclu...
- Wed Feb 04, 2004 8:14 pm
- Forum: Volume 2 (200-299)
- Topic: 286 - Dead Or Not -- That Is The Question
- Replies: 19
- Views: 5063
286 - Dead Or Not -- That Is The Question
Hi guys, I am breaking my head over this simple problem.. The technique i took is to check if the current position is checked and all other 8 positions are checked or cannot move to.... WHat is the error.. I thnk it could be because i choose an empty cell o move to... Plz help [cpp] # include<stdio....
- Wed Feb 04, 2004 8:00 am
- Forum: Volume 101 (10100-10199)
- Topic: 10190 - Divide, But Not Quite Conquer!
- Replies: 105
- Views: 23911
10190 WA :(
I have tested he code for all inputs i could think of. I would be great if any of u guys could tell me what is wrong with the code or just tell me the test case where it fails... I use log to check if it is a power or not and then start dividing...... [cpp] # include<iostream.h> # include<math.h> lo...
- Mon Feb 02, 2004 11:15 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10101 - Bangla Numbers
- Replies: 122
- Views: 27885
10101 WA Help
My code seems to work fine for all conditions.. like prefixed 0's trailing spaces etc... it even takes care of blank lines... Where is the error.. Plz let me know... Any test case where it fails... [c] # include<stdio.h> # include<string.h> int a[10],bc,ac,i,ct,stt,tio; char b[100],ch; int main() { ...
- Wed Jan 28, 2004 4:38 pm
- Forum: Volume 4 (400-499)
- Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
- Replies: 44
- Views: 10639
- Tue Jan 27, 2004 11:13 pm
- Forum: Volume 3 (300-399)
- Topic: 337 - Interpreting Control Sequences
- Replies: 20
- Views: 4252
Plz help me. What seems to be the problem .. I guess one of the conditions is messed up somewher... [c] # include<stdio.h> # include<conio.h> char ch,c1,c2; int n,i,j,k,insert,cc; char a[10][10]; int r,c; void write(char x) { /* //printf("%d %d\n",r,c); for(i=0;i<10;i++) { for(j=0;j<10;j++) { //if(a...
- Tue Jan 27, 2004 9:21 pm
- Forum: Volume 4 (400-499)
- Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
- Replies: 44
- Views: 10639
- Tue Jan 27, 2004 9:16 pm
- Forum: Volume 4 (400-499)
- Topic: 492 - Pig-Latin
- Replies: 213
- Views: 25594
Whoa problem your source code is so big... No offence meant you need not use memset and strcat etc.. The trick is fairly simple.. I am sending my AC code.. Hope it helps you in understanding how to tackle inputs cause it is infac very simple and once you learn i u will be able to solve many problems...
- Tue Jan 27, 2004 9:10 pm
- Forum: Volume 4 (400-499)
- Topic: 485 - Pascal's Triangle of Death
- Replies: 50
- Views: 4863
- Tue Jan 27, 2004 9:02 pm
- Forum: Volume 4 (400-499)
- Topic: 476 - Points in Figures: Rectangles
- Replies: 87
- Views: 7773
- Tue Jan 27, 2004 8:57 pm
- Forum: Volume 4 (400-499)
- Topic: 476 - Points in Figures: Rectangles
- Replies: 87
- Views: 7773
Hi mohiul, You do not have to create an array and fill it up to create a rectangle.. This problem is easy. keep an array like you are keeping and when a pt is given just compare if the point lies in bound.. Eg. l=left r=right t=top b=bottom x,y is the point if(x>l && x<r && y>b && y<t) cout<<"In fig...
- Tue Jan 27, 2004 2:19 pm
- Forum: Volume 4 (400-499)
- Topic: 496 - Simply Subsets
- Replies: 48
- Views: 9215
- Sat Jan 24, 2004 6:59 pm
- Forum: Volume 4 (400-499)
- Topic: 496 - Simply Subsets
- Replies: 48
- Views: 9215
I am having problems with this problem... I have tried out for null inputs also like set 1 = {1,2,3} set2={} then set2 is proper subset of set1.. Please tell me why i am getting WA...... Frustrated Aakash [cpp] # include<stdio.h> # include<string.h> # include<math.h> char a[1000]; long long x[100],y...