Search found 6 matches

by atiburrahman09
Sun Jan 20, 2013 8:26 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 51341

Re: 371 - Ackermann Functions... Why WA????

hello friend i tried to handle the case 1 2.but when i input the file output never comes.can anyone help me.

here is my code...

#include<iostream>
using namespace std;
int main()
{
long long int x, y,i,count,max=0,v,n=0,temp;
while(cin>>x>>y)
{
max=0;
if(x==0 && y==0)
break;
if(y<x ...
by atiburrahman09
Fri Jun 29, 2012 1:58 am
Forum: Volume 119 (11900-11999)
Topic: 11991 - Easy Problem from Rujia Liu?
Replies: 32
Views: 16559

11991

I need some Help....
i am trying to solve this problem. but i cann't understand this line.

"For each query, print the 1-based location of the occurrence. If there is no such element, output 0 instead."

Any help will be great....
by atiburrahman09
Wed Apr 04, 2012 10:29 pm
Forum: Volume 103 (10300-10399)
Topic: 10347 - Medians
Replies: 32
Views: 18004

Re: 10347-WHY TLE???

yeah....but why......


#include<iostream>
#include<stdio.h>
using namespace std;
#include<cmath>
#include<iomanip>
#include<cstdio>


int main(){
int med1,med2,med3;
double area,s,a,b,c,x;


while(cin>>med1>>med2>>med3)
{

if((med1+med2)>med3 && (med1+med3)>med2 && (med2+med3)>med1)
{
s=(med1 ...
by atiburrahman09
Sun Apr 01, 2012 12:20 am
Forum: Volume 103 (10300-10399)
Topic: 10347 - Medians
Replies: 32
Views: 18004

10347-WHY TLE???

Can not Find any problem in my code.Can someone please say what is the problem???



#include<iostream>
#include<stdio.h>
using namespace std;
#include<cmath>
#include<iomanip>
#include<cstdio>


int main(){
int med1,med2,med3;
double area,s,a,b,c;


while(scanf("%d %d %d",&med1,&med2,&med3)!=EOF ...
by atiburrahman09
Sat Mar 31, 2012 11:06 pm
Forum: Volume 103 (10300-10399)
Topic: 10347 - Medians
Replies: 32
Views: 18004

Re: 10347 - Medians

Can not Find any problem in my code.Can someone please say what is the problem???



#include<iostream>
#include<stdio.h>
using namespace std;
#include<cmath>
#include<iomanip>
#include<cstdio>


int main(){
int med1,med2,med3;
double area,s,a,b,c;


while(scanf("%d %d %d",&med1,&med2,&med3)!=EOF ...
by atiburrahman09
Mon Mar 26, 2012 10:18 pm
Forum: Volume 4 (400-499)
Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
Replies: 44
Views: 16121

478-Why not accepting????

#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
char a[500];
int i;

scanf("%s",a); /*taking input for decoding*/
for(i=0;i<strlen(a);i++)
{
a=((a-7));
}
for(i=0;i<strlen(a);i++)
printf("%c",a);

return 0;
}

Go to advanced search