Search found 38 matches

by aakash_mandhar
Mon Mar 01, 2004 6:32 am
Forum: Volume 101 (10100-10199)
Topic: 10196 - Check The Check
Replies: 77
Views: 23208

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...
by aakash_mandhar
Wed Feb 25, 2004 6:33 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 23853

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....
by aakash_mandhar
Sun Feb 22, 2004 2:12 am
Forum: Volume 4 (400-499)
Topic: 447 - Population Explosion
Replies: 23
Views: 2220

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...
by aakash_mandhar
Wed Feb 04, 2004 8:14 pm
Forum: Volume 2 (200-299)
Topic: 286 - Dead Or Not -- That Is The Question
Replies: 19
Views: 4918

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....
by aakash_mandhar
Wed Feb 04, 2004 8:00 am
Forum: Volume 101 (10100-10199)
Topic: 10190 - Divide, But Not Quite Conquer!
Replies: 105
Views: 23380

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...
by aakash_mandhar
Mon Feb 02, 2004 11:15 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 27310

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() { ...
by aakash_mandhar
Wed Jan 28, 2004 4:38 pm
Forum: Volume 4 (400-499)
Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
Replies: 44
Views: 10469

Thx guys..
The advices are great.. I wish i thought of them earlier..

Thx
Aakash :D
by aakash_mandhar
Tue Jan 27, 2004 11:13 pm
Forum: Volume 3 (300-399)
Topic: 337 - Interpreting Control Sequences
Replies: 20
Views: 4137

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...
by aakash_mandhar
Tue Jan 27, 2004 9:21 pm
Forum: Volume 4 (400-499)
Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
Replies: 44
Views: 10469

Hi there
I got 476 and 477 accepted. but in 478 i am kinda stuck with ow to check if a pt lies in the triangle or not... Any suggestions guys..
by aakash_mandhar
Tue Jan 27, 2004 9:16 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 24803

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...
by aakash_mandhar
Tue Jan 27, 2004 9:10 pm
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 4632

Hi,
I hope you are not stopping at the first number greater than 2^60 that u encounter.. Finidh that row and then exit.. Since you had not mentioned anythong else so i assume this is the case...

If you have any problems i might pass a snippet of the code to you..

Aakash :)
by aakash_mandhar
Tue Jan 27, 2004 9:02 pm
Forum: Volume 4 (400-499)
Topic: 476 - Points in Figures: Rectangles
Replies: 87
Views: 7474

Your idea seems right but am no good with pascal..
if t=top l=left r=right b=botom and x,y is the point

if(x>l && x<r && y<t && y>b) then pt in figure

if it fails for all figures then point not in any figure.

Aakash :D
by aakash_mandhar
Tue Jan 27, 2004 8:57 pm
Forum: Volume 4 (400-499)
Topic: 476 - Points in Figures: Rectangles
Replies: 87
Views: 7474

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...
by aakash_mandhar
Tue Jan 27, 2004 2:19 pm
Forum: Volume 4 (400-499)
Topic: 496 - Simply Subsets
Replies: 48
Views: 9023

Thx everyone for the help but i got ac...
:)
Aakash
by aakash_mandhar
Sat Jan 24, 2004 6:59 pm
Forum: Volume 4 (400-499)
Topic: 496 - Simply Subsets
Replies: 48
Views: 9023

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...

Go to advanced search