Search found 24 matches
- Thu Apr 22, 2010 11:34 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11747 - Heavy Cycle Edges
- Replies: 11
- Views: 6816
Re: 11747 - Heavy Cycle Edges
Please give me some more input & output.
- Wed Mar 31, 2010 9:54 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10946 - You want what filled?
- Replies: 38
- Views: 24805
- Mon Mar 29, 2010 10:59 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10446 - The Marriage Interview :-)
- Replies: 17
- Views: 12326
Re: 10446 - The Marriage Interview ;-)
Why WA.. Can anyone help me..
#include<stdio.h>
unsigned long long b[1000],i,j,k,l,back,cas=1;
int main()
{
long m,n;
while(scanf("%ld%ld",&m,&n))
{
if(m>60)
break;
if(m>1 && n==1)
{
printf("Case %llu: %ld\n",cas++,m);
continue;
}
else if(n<2 || m<2)
{
printf("Case %llu: 1\n",cas ...
#include<stdio.h>
unsigned long long b[1000],i,j,k,l,back,cas=1;
int main()
{
long m,n;
while(scanf("%ld%ld",&m,&n))
{
if(m>60)
break;
if(m>1 && n==1)
{
printf("Case %llu: %ld\n",cas++,m);
continue;
}
else if(n<2 || m<2)
{
printf("Case %llu: 1\n",cas ...
- Sun Mar 28, 2010 12:10 am
- Forum: Volume 109 (10900-10999)
- Topic: 10986 - Sending email
- Replies: 65
- Views: 39445
Re: 10986 - Sending email
Cut after Accepted...
- Sat Mar 20, 2010 10:35 am
- Forum: Volume 113 (11300-11399)
- Topic: 11385 - Da Vinci Code
- Replies: 70
- Views: 35027
Re: 11385 - Da Vinci Code
Remove after ACC
- Tue Jan 26, 2010 9:01 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11770 - Lighting Away
- Replies: 27
- Views: 13779
Re: WA in problem 11770
My code accepted after using topological sort & dfs
thanx robot
thanx robot
- Sun Nov 01, 2009 11:07 am
- Forum: Volume 116 (11600-11699)
- Topic: 11639 - Guard the Land
- Replies: 7
- Views: 4391
Re: 11639 - Guard the Land
Acc
CODE REMOVED
CODE REMOVED
- Tue Sep 15, 2009 9:14 pm
- Forum: Volume 4 (400-499)
- Topic: 486 - English-Number Translator
- Replies: 29
- Views: 12643
Re: 486 - English-Number Translator
some input:
nine hundred ninety nine million
nine hundred nine million
nine hundred million
nine million
ninety million
ninety nine million
nine hundred ninety nine million ninety nine thousand ninety nine
nine hundred ninety nine million nine hundred ninety nine thousand ninety nine
nine hundred ...
nine hundred ninety nine million
nine hundred nine million
nine hundred million
nine million
ninety million
ninety nine million
nine hundred ninety nine million ninety nine thousand ninety nine
nine hundred ninety nine million nine hundred ninety nine thousand ninety nine
nine hundred ...
- Tue Sep 08, 2009 11:24 am
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56775
Re: 727 - Equation
I'm tired of getting wa in 727...
#include<stdio.h>
#include<string.h>
int main()
{
char stack[100],p[100],c,str[100];
long i,j,n,l,top,f,count,count1,cc;
scanf("%ld",&n);
getchar();
while(n)
{
memset(0,sizeof(stack),0);
memset(0,sizeof(p),0);
memset(0,sizeof(str),0);
i=0;
count=0 ...
#include<stdio.h>
#include<string.h>
int main()
{
char stack[100],p[100],c,str[100];
long i,j,n,l,top,f,count,count1,cc;
scanf("%ld",&n);
getchar();
while(n)
{
memset(0,sizeof(stack),0);
memset(0,sizeof(p),0);
memset(0,sizeof(str),0);
i=0;
count=0 ...
- Fri Sep 04, 2009 12:42 pm
- Forum: Volume 1 (100-199)
- Topic: 136 - Ugly Numbers
- Replies: 156
- Views: 41830
Re: 136 Ugly Number Presentation Error
You're just missing "\n";
remove after accepted
remove after accepted
- Thu Jul 16, 2009 11:45 pm
- Forum: Volume 4 (400-499)
- Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
- Replies: 44
- Views: 16084
Re: 478 point in triangle ?? getting WA
Getting WA
#include<stdio.h>
#include<math.h>
int main()
{
double x1[15][2],x2[15],y1[15],y2[15],c1[15][2],c2[15],r[15],tx1[15][2],tx2[15],tx3[15],ty1[15],ty2[15],ty3[15],d,x,y,s,a,b,cc,a1,a2,a3,a4,m1,m2,m3;
long i=0,j=0,k=0,c=1, f, point=1, flag ,co=0;
char ch;
scanf("%c",&ch);
while(1 ...
#include<stdio.h>
#include<math.h>
int main()
{
double x1[15][2],x2[15],y1[15],y2[15],c1[15][2],c2[15],r[15],tx1[15][2],tx2[15],tx3[15],ty1[15],ty2[15],ty3[15],d,x,y,s,a,b,cc,a1,a2,a3,a4,m1,m2,m3;
long i=0,j=0,k=0,c=1, f, point=1, flag ,co=0;
char ch;
scanf("%c",&ch);
while(1 ...
- Thu Jul 09, 2009 9:19 am
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96709
Re: 10200 - Prime Time
Thanks mf.
Accepted after using eps
Accepted after using eps
- Sun Apr 26, 2009 8:49 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11532 - Simple Adjacency Maximization
- Replies: 9
- Views: 4011
Re: 11532 - Simple Adjacency Maximization
ACC
It was wrong for 3 1
It was wrong for 3 1
- Mon Apr 06, 2009 11:58 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 67720
Re: 10013 - Super Long Sums
Getting Runtime Error.....
Can anyone help me
Got AC. Thanks Obaida
Can anyone help me
Got AC. Thanks Obaida
- Fri Apr 03, 2009 1:48 am
- Forum: Volume 115 (11500-11599)
- Topic: 11586 - Train Tracks
- Replies: 14
- Views: 10923
Re: 11586 - Train Tracks
got TLE why?
Removed after ACC
You can do it simply by counting male & female conector.
if male conector equals to female conector then LOOP other wise NO LOOP
And also if there is only one conector then it will be no loop..
Removed after ACC
You can do it simply by counting male & female conector.
if male conector equals to female conector then LOOP other wise NO LOOP
And also if there is only one conector then it will be no loop..