Search found 38 matches

by mobarak.islam
Tue Dec 23, 2014 12:33 pm
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 21494

Re: 11371 - Number Theory for Newbies

I am getting WA here. Though all the I/O given in problem and this discussion board have given correct answer.

Code: Select all

Removed after getting AC :)
by mobarak.islam
Tue Dec 24, 2013 10:54 am
Forum: Volume 109 (10900-10999)
Topic: 10945 - Mother bear
Replies: 65
Views: 15593

Re: 10945 - Mother Bear WA why? Anyone help me please

I am getting WA here . Please help me . #include <stdio.h> #include <stdlib.h> #include <string.h> #include<cctype> #include<cstdio> #include<cstring> int main() { char s[1000000]; int init,end; bool des; while(gets(s)&& strcmp(s,"DONE")) { des=false; init=0; end=strlen(s)-1; while(init<=end) { if(!...
by mobarak.islam
Wed Dec 11, 2013 7:42 am
Forum: Volume 105 (10500-10599)
Topic: 10539 - Almost Prime Numbers
Replies: 44
Views: 23667

Re: 10539 - Almost Prime Numbers

Got AC. Thanks brianfry713
by mobarak.islam
Tue Dec 10, 2013 6:20 am
Forum: Volume 105 (10500-10599)
Topic: 10539 - Almost Prime Numbers
Replies: 44
Views: 23667

Re: 10539 - Almost Prime Numbers

I solved it without floating point but still getting wrong answer :(

Code: Select all

Code removed after AC
by mobarak.islam
Mon Dec 09, 2013 7:43 pm
Forum: Volume 105 (10500-10599)
Topic: 10539 - Almost Prime Numbers
Replies: 44
Views: 23667

Re: 10539 - Almost Prime Numbers

Here I'm getting wrong answer. please help

Code: Select all

Code removed after getting AC 
by mobarak.islam
Sat Dec 07, 2013 8:32 pm
Forum: Volume 103 (10300-10399)
Topic: 10305 - Ordering Tasks
Replies: 59
Views: 20576

Re: 10305 - Ordering Tasks

@Brianfry713: I resolved the spacing problem but still getting wrong answer : #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <string> #include <memory> #include <algorithm> #include <map> #include <vector> using namespace std; void BFS_VISIT(int...
by mobarak.islam
Fri Dec 06, 2013 7:23 am
Forum: Volume 103 (10300-10399)
Topic: 10305 - Ordering Tasks
Replies: 59
Views: 20576

Re: 10305 - Ordering Tasks

@Brianfry713: I resolved the problem but still getting wrong answer : #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <string> #include <memory> #include <algorithm> #include <map> #include <vector> using namespace std; void BFS_VISIT(int p); int...
by mobarak.islam
Thu Dec 05, 2013 1:11 pm
Forum: Volume 103 (10300-10399)
Topic: 10305 - Ordering Tasks
Replies: 59
Views: 20576

Re: 10305 - Ordering Tasks

Here I'm getting wrong answer. I checked all the i/o given in this board. Please Help. #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <string> #include <memory> #include <algorithm> #include <map> #include <vector> using namespace std; void BFS_...
by mobarak.islam
Tue Jul 23, 2013 7:23 am
Forum: Volume 117 (11700-11799)
Topic: 11723 - Numbering Roads
Replies: 32
Views: 5676

Re: Why WA!! for 11723, help me please...

I got AC. Thanks Mr. t.tahasin.
by mobarak.islam
Sun Jul 21, 2013 4:25 pm
Forum: Volume 117 (11700-11799)
Topic: 11723 - Numbering Roads
Replies: 32
Views: 5676

Re: Why WA!! for 11723, help me please...

i resolved the issue but still getting wa :(
by mobarak.islam
Sat Jul 20, 2013 2:31 pm
Forum: Volume 117 (11700-11799)
Topic: 11723 - Numbering Roads
Replies: 32
Views: 5676

Re: Why WA!! for 11723, help me please...

I'm still getting wa though there is no floating point.

code is removed after getting ac.
by mobarak.islam
Fri Jul 19, 2013 9:18 pm
Forum: Volume 117 (11700-11799)
Topic: 11723 - Numbering Roads
Replies: 32
Views: 5676

Re: Why WA!! for 11723, help me please...

Here I'm getting wa! please help #include<stdio.h> #include<stdlib.h> #include<cstring> #include<math.h> int main() { int R,D,t=0,res; float res1; scanf("%d %d",&R,&D); while(R) { res=0; t++; if((R-D)/D > 26) printf("Case %d: impossible\n",t); else if(R <= D ) printf("Case %d: 0\n",t); else { res1=(...
by mobarak.islam
Tue Jun 11, 2013 3:16 pm
Forum: Volume 8 (800-899)
Topic: 884 - Factorial Factors
Replies: 49
Views: 25754

Re: 884 - Factorial Factors

@t.tahasin :Thanks for your great help. I got AC :)
by mobarak.islam
Tue Jun 11, 2013 2:26 pm
Forum: Volume 8 (800-899)
Topic: 884 - Factorial Factors
Replies: 49
Views: 25754

Re: 884 - Factorial Factors

I'm getting TLE here. Someone please help me.

Code deleted after AC.
by mobarak.islam
Thu May 23, 2013 10:35 am
Forum: Volume 112 (11200-11299)
Topic: 11219 - How old are you?
Replies: 117
Views: 32518

Re: 11219 - How old are you?

.

Go to advanced search