Search found 8 matches

by shorojini
Fri Oct 30, 2009 1:03 pm
Forum: Volume 114 (11400-11499)
Topic: 11479 - Is this the easiest problem?
Replies: 48
Views: 27384

Re: 11479 pls pls pls help

thanks coz 4 ur great help. i got accepted. i have started acm. and i have no help. will u pls give me ur mail number. so i will be able to share my probs.it is my request.
now , will u just tell me why (a==b==c) is not right. it will be great help.
by shorojini
Sat Oct 24, 2009 8:13 pm
Forum: Volume 114 (11400-11499)
Topic: 11479 - Is this the easiest problem?
Replies: 48
Views: 27384

11479 pls pls pls help

#include<iostream>
using namespace std;
int main() {

long long a, b, c, n,i;
cin>>n;

for(i=1;i<=n;i++)
{

cin>>a>>b>>c;

if((a<=0||b<=0||c<=0)||((b+c)<=a)||((a+c)<=b)||((a+b)<=c))
cout<<"Case "<<i<<": "<<"Invalid\n";
else
{

if((a==b==c))
cout<<"Case "<<i<<": "<<"Equilateral\n";

else if((a==b ...
by shorojini
Mon Feb 16, 2009 11:35 pm
Forum: General
Topic: is there no one who can help.no one???!!!surprised.pls help.
Replies: 0
Views: 1014

is there no one who can help.no one???!!!surprised.pls help.

:cry: :( :oops: :roll: :cry: i am getting wrong answer in this problem.
i am giving my code here.if there is not any prob in code then there must
be some prob in my input output system.please can anyone give me any solution and
some some sample input output.pls pls pls mark me my prob.pls pls pls ...
by shorojini
Sun Feb 15, 2009 9:45 pm
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 22080

445 WA.pls anyone help this helpless.pls

:cry: i am getting wrong answer in this problem.
i am giving my code here.if there is not any prob in code then there must
be some prob in my input output system.please can anyone give me any solution and
some some sample input output.pls pls pls mark me my prob.pls pls pls.

#include<iostream ...
by shorojini
Sat Feb 07, 2009 9:58 pm
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 22080

help help help.445

i am getting wrong answer in this problem. :( :(
i am giving my code here.if there is not any prob in code then there must
be some prob in my input output system.please can anyone give me any solution and
some some sample input output.pls pls pls mark me my prob.pls pls pls.

#include<iostream ...
by shorojini
Mon Sep 15, 2008 6:47 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 102313

Re: 10035 - Primary Arithmetic

i alltime get runtime error.pls help.i want to know why? :cry:


#include<iostream>
using namespace std;
int main()
{
int k,m,n,i=0,j=0,t=0,l,x;
int f ,s[j],p[t],q[t];
long long a,b;
while(cin>>a>>b)
{
if(a!=0&&b!=0)
{
p[t]=a;
q[t]=b;
t++;
}
else
{
for(x=0;x<t;x++)
{
while(p[x]!=0)
{
f =p[x]%10;
p ...
by shorojini
Mon Aug 18, 2008 10:30 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 102313

Re: 10035 - Primary Arithmetic

all time i submit this code the verdict shows-"run time error"
i have compiled it for many times but cant get the fault.pls help

#include<iostream>
using namespace std;
int main()
{
int k,m,n,i=0,j=0,t=0,l,x;
int f ,s[j],p[t],q[t];
long long a,b;
while(cin>>a>>b)
{
if(a!=0&&b!=0)
{
p[t]=a;
q[t]=b ...
by shorojini
Sat Aug 16, 2008 8:28 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320000

Re: 100

can anyone help me with this code-
#include<iostream>
using namespace std;
int main()
{
long long a,b,len,k,i,n;
while(cin>>a>>b)
{
long long max=1;
n=a;
i=a;
while(i<=b)
{

k=0;

while(i!=1)
{
if((i%2)!=0)
{i=(3*i)+1;}
else
{i=i/2;}
k=k+1;
}
len=k+1;
if(len>max)
max=len;
a++;
i=a;
}
cout<<n<<" "<<b ...

Go to advanced search