Search found 48 matches

by mukit
Tue Sep 09, 2008 12:03 pm
Forum: Volume 105 (10500-10599)
Topic: 10592 - Freedom Fighter
Replies: 17
Views: 9719

Re: 10592 - Freedom Fighter

Hi, I'm getting wrong answer in this problem. I checked all the given input-output. Please help #include<iostream> #include<stdio.h> #include<string.h> using namespace std; //enum{noCol=-1,white,red,green,pink,blue,gray,black}; #define noCol -1 #define white 0 #define red 1 #define green 2 #define p...
by mukit
Wed Jul 30, 2008 10:47 pm
Forum: Volume 113 (11300-11399)
Topic: 11357 - Ensuring Truth
Replies: 12
Views: 4437

Re: 11357 - Ensuring Truth

I am getting W.A. in this problem #include<stdio.h> #include<string.h> int main() { int op,len,j,i,l,k,t,stack[1001],exp[1001],car; char in[300],_in[300]; bool is; scanf("%d",&t); gets(_in); for(j=0;j<t;j++) { k=0; l=0; op=0; car=0; gets(_in); len=strlen(_in); in[0]='('; int ct=1; for(i=0;i<len;i++)...
by mukit
Fri Jul 25, 2008 2:16 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 22496

Re: 333 - Recognizing Good ISBNs - Need more In/Output samples

But if there are no such cases then it would have show the message "No output!" with the cross sign.
Besides, I ignored this case and got wrong answer ! So there must be such input.

Am I making any wrong ??? I think I must . . .
by mukit
Thu Jul 24, 2008 8:03 am
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 22496

Re: 333 - Recognizing Good ISBNs - Need more In/Output samples

Dear Jan Vi, You gave I/O for, INPUT : 0-89237-010- 6 TEST <S><S><T><S>0823025713<T><T><S> OUTPUT : 0-89237-010- 6 TEST is correct. <S><S><T><S>0823025713<T><T><S> is correct. I also agree with this. But one thing I don't understand, I find different result in here for this I/O : http://www.uvatoolk...
by mukit
Mon Jun 09, 2008 6:41 am
Forum: Volume 7 (700-799)
Topic: 750 - 8 Queens Chess Problem
Replies: 78
Views: 27102

PE : 750 - 8 Queens Chess Problem

Hi , I'm getting PE. I read all post before and all tried all ways. Please help. #include<iostream> #include<iomanip> using namespace std; int fres,hash,chess[11][11],input[11][11]={0},colset[11],l_diag[20],r_diag[20]; int res[11],row,col; void backTrack(int r) { int c,m,n,tmax; if(r==9) { for(int i...
by mukit
Tue May 27, 2008 5:37 pm
Forum: Volume 113 (11300-11399)
Topic: 11369 - Shopaholic
Replies: 9
Views: 5779

Re: 11369 - Shopaholic

ok , i got my point and got AC now. :wink:
It was a silly mistake.
by mukit
Tue May 20, 2008 12:47 am
Forum: Volume 113 (11300-11399)
Topic: 11369 - Shopaholic
Replies: 9
Views: 5779

RTE 11369 - Shopaholic

I'm getting RTE :oops:
Please help

Code: Select all

cut after AC
Thank's in advance.
by mukit
Mon May 19, 2008 11:08 pm
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 44626

Re: 11340 - Newspaper

I updated my code but still WA :oops:
Someone please help
Here is my code :

Code: Select all

Forget it ...I got AC
Thank's in advance.
by mukit
Mon May 19, 2008 10:27 pm
Forum: Volume 113 (11300-11399)
Topic: 11321 - Sort! Sort!! and Sort!!!
Replies: 50
Views: 20841

WA 11321 - Sort! Sort!! and Sort!!!

Some one please where i did wrong ? I got lots of WA :evil:

Code: Select all

I found my problem . . .
Thank's in advance.
by mukit
Mon May 19, 2008 4:38 pm
Forum: Volume 113 (11300-11399)
Topic: 11345 - Rectangles
Replies: 27
Views: 9091

WA 11345 - Rectangles

I'm getting WA in this problem.Can anyone tell where i did wrong ? Or give me some io please. #include<iostream> using namespace std; #define size 35 long x1[size],y1[size],x2[size],y2[size]; long lx=10002,hx=-10002,ly=10002,hy=-10002; long vx,vy; int main() { int n,m; cin>>n; int flag; for(int i=1;...
by mukit
Mon May 19, 2008 3:38 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 32414

Re: 10533 - Digit Primes

Thank's a lot emotional blind. I got AC with 0.56 sec. :D But something was ambiguous to me. It didn't find the memset() function in ANSI C with header #include<stdio.h> and only #include<cstdio> header in C++. I had to use #include<iostream> with namespace. :-? Another thing why it took such a huge...
by mukit
Sun May 18, 2008 12:56 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 32414

Re: 10533 - Digit Primes

To emotional Blind,
I did as you said but got TLE again with running time 3.00 sec like past. :oops:
I did it as :

Code: Select all

Removed after AC
Thanks for reply.
by mukit
Sat May 17, 2008 8:53 am
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 32414

Re: 10533 - Digit Primes

Someone can plesae tell me why I'm getting TLE ? I read previous posts. Here is my code : #include<iostream> #include<cstdio> using namespace std; #define SIZE 1000002 long a,b,i,j; char data[SIZE]={0}; int dp[SIZE]; int nop[SIZE]; void sieve(void) { int i, j, k; data[0] = 1; data[1] = 1; for (i=4; ...
by mukit
Fri May 16, 2008 6:35 am
Forum: Volume 102 (10200-10299)
Topic: 10297 - Beavergnaw
Replies: 13
Views: 7012

Re: 10297 - Beavergnaw

I don't see any reason of getting W.A.
I used double and solved the problem.
by mukit
Mon Apr 28, 2008 8:03 am
Forum: Volume 3 (300-399)
Topic: 362 - 18,000 Seconds Remaining
Replies: 75
Views: 26685

Re: 362 why WA???

To Morning : change the line : aver /= 5; into aver /= 5.0; And you should have print the output lines into proper format(spaces). Like : cout << " Time remaining: " << ceiling((size - sum) / aver) << " seconds" << endl; would be cout << " Time remaining: " << ceiling((size - sum) / aver) << " secon...

Go to advanced search