Search found 16 matches

by sadmansobhan
Fri May 02, 2014 9:24 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45538

Re: 10101 - Bangla Numbers

got Ac. thanks brianfry713
by sadmansobhan
Tue Apr 29, 2014 8:02 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45538

Re: 10101 - Bangla Numbers

remove after AC
by sadmansobhan
Fri Apr 25, 2014 7:57 am
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45538

Re: 10101 - Bangla Numbers

remove
by sadmansobhan
Sun Dec 29, 2013 6:09 pm
Forum: Volume 102 (10200-10299)
Topic: 10281 - Average Speed
Replies: 39
Views: 21977

Re: 10281 - Average Speed

#include <iostream>
#include <cstdio>
#include <cstring>

using namespace std;

int main()
{

int speed,first,temp,second,len,i;
float total=0;
char time[20];
while(gets(time))
{
len=strlen(time);
if(len<9)
{
second=((time[0]-'0')*10+time[1]-'0')*3600+((time[3]-'0')*10+time[4]-'0')*60 ...
by sadmansobhan
Sat Dec 21, 2013 10:45 am
Forum: Volume 120 (12000-12099)
Topic: 12060 - All Integer Average
Replies: 6
Views: 4405

Re: 12060 - All Integer Average

#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main()
{

int sum,test,num,avg,f1,temp,caseno=0,temp1,loop,loop1;
while(scanf("%d", &test)!=0)
{
if(test==0)
break;
caseno++;
sum=0;
loop=0;
loop1=0;
for(int k=0;k<test;k++)
{
scanf("%d", &num);
sum+=num ...
by sadmansobhan
Tue Dec 17, 2013 10:46 pm
Forum: Volume 120 (12000-12099)
Topic: 12060 - All Integer Average
Replies: 6
Views: 4405

12060 - All Integer Average

remove
by sadmansobhan
Sun Nov 24, 2013 7:01 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 69675

Re: 10062 - Tell Me the Frequencies!

thanks brianfry713.
by sadmansobhan
Fri Nov 22, 2013 8:13 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 69675

Re: 10062 - Tell Me the Frequencies!

remove after AC
by sadmansobhan
Tue Nov 05, 2013 9:20 pm
Forum: Volume 120 (12000-12099)
Topic: 12004 - Bubble Sort
Replies: 4
Views: 3458

Re: 12004 - Bubble Sort

#include <iostream>
#include <cstdio>

using namespace std;

long long int num;
int main()
{
long long int test;
cin >> test;
for(int i=1;i<=test;i++)
{
cin >> num;
if(num%4==0)
{
num=(num*(num-1))/4;
cout << "Case "<< i <<": "<<num << endl;
}
else
{
num=(num*(num-1))/2;
cout << "Case ...
by sadmansobhan
Tue Nov 05, 2013 9:16 pm
Forum: Volume 111 (11100-11199)
Topic: 11192 - Group Reverse
Replies: 22
Views: 15840

Re: 11192 - Group Reverse

Thanks brianfry713
by sadmansobhan
Tue Nov 05, 2013 8:31 pm
Forum: Volume 107 (10700-10799)
Topic: 10751 - Chessboard
Replies: 21
Views: 17544

Re: 10751 - Chessboard

@brianfry713 thanks for your precious hints. I had one other severe fault and for that my code missed some digits after decimal point. My fault was to taking datatype -

Code: Select all

 float
but the correct approach is to print the answer as

Code: Select all

 double
. Thanks again :wink:
by sadmansobhan
Mon Nov 04, 2013 8:32 am
Forum: Volume 107 (10700-10799)
Topic: 10751 - Chessboard
Replies: 21
Views: 17544

Re: 10751 - Chessboard

Code: Select all

 Code removed after AC
by sadmansobhan
Sat Nov 02, 2013 8:01 pm
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 35388

Re: 382 WA

#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
freopen("in.txt", "r", stdin);
int a;
cout << "PERFECTION OUTPUT" << endl;
while((cin>>a)!=0)
{
if(a==0)
{
break;
}
else
{
int n=0;
for(int i=1;i<=a/2;i++)
{
if(a%i==0)
n=n+i;
}
printf("%5d",a);
if(a==n ...
by sadmansobhan
Fri Nov 01, 2013 10:02 pm
Forum: Volume 111 (11100-11199)
Topic: 11192 - Group Reverse
Replies: 22
Views: 15840

Re: 11192 - Group Reverse

brianfry713, my code give the same output that you provide.But it shows wrong answer
by sadmansobhan
Wed Oct 30, 2013 8:58 pm
Forum: Volume 111 (11100-11199)
Topic: 11192 - Group Reverse
Replies: 22
Views: 15840

Re: 11192 - Group Reverse

i submit it again without file read or write. but again it shows WA.

Go to advanced search