Search found 39 matches

by alimbubt
Mon Dec 17, 2012 6:05 am
Forum: Volume 108 (10800-10899)
Topic: 10815 - Andy's First Dictionary
Replies: 116
Views: 30735

Re: Getting WA in 10815 - Andy's First Dictionary

Getting WA.....please help me....Is my input process is correct??

Code: Select all

Cut After Accepted
by alimbubt
Fri Dec 14, 2012 8:03 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 38110

Re: 10226 - Hardwood Species

brianfry713 wrote:Instead of adding every tree to the vector check the map to see if that tree already exists.
Thanks a lot......now Accepted :D
by alimbubt
Thu Dec 13, 2012 9:58 am
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 38110

Re: 10226 - Hardwood Species

brianfry713 wrote:post your updated code

Code: Select all

Accepted :D 
by alimbubt
Wed Dec 12, 2012 6:49 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 38110

Re: 10226 - Hardwood Species

brianfry713 wrote:getline(cin,s) is too slow, try using gets() with a char array.
I have used gets() and char array....But again TLE...... :(
by alimbubt
Tue Dec 11, 2012 8:03 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 38110

Re: 10226 - Hardwood Species

getting TLE :( ....Plz help me....

Code: Select all

Accepted :)
by alimbubt
Sat Dec 01, 2012 2:16 pm
Forum: Volume 105 (10500-10599)
Topic: 10551 - Basic Remains
Replies: 11
Views: 5949

Re: 10551 - Basic Remains

I am getting WA....Plz help me...... #include<cstdio> #include<iostream> #include<vector> #include<map> #include<stack> #include<queue> #include<bitset> #include<string> #include <sstream> #include <fstream> #include<cctype> #include<cstring> #include<cmath> #include<algorithm> #define pi 2*acos(0.0...
by alimbubt
Fri Nov 09, 2012 8:25 pm
Forum: Volume 3 (300-399)
Topic: 336 - A Node Too Far
Replies: 121
Views: 39932

Re: 336 WA

I am getting continuously WA.....Please help me or give me some critical test case in which my code shows wrong answer.. :( #include<cstdio> #include<iostream> #include<vector> #include<stack> #include<queue> #include<map> #include<bitset> #include<string> #include <sstream> #include <fstream> #incl...
by alimbubt
Mon Oct 29, 2012 9:42 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 17251

Re: 11428 - Cubes

brianfry713 wrote:40*40*40-39*39*39=4681
Thanks :D :D
by alimbubt
Mon Oct 22, 2012 6:32 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 17251

Re: 11428 - Cubes

I am getting continuously wrong answer..Please help me...... Here is my code... #include<stdio.h> int main() { int n,x,y,i,j,flag,m; while(scanf("%d",&n)==1) { if(n==0) break; x=0; y=0; flag=0; for(j=0;j<=22;j++) { for(i=1;i<=28;i++) { if(i<j) continue; m=(i*i*i)-(j*j*j); if(m==n) { x=i; y=j; flag=1...

Go to advanced search