Search found 24 matches

by aliahmed
Thu Apr 22, 2010 11:34 pm
Forum: Volume 117 (11700-11799)
Topic: 11747 - Heavy Cycle Edges
Replies: 11
Views: 3808

Re: 11747 - Heavy Cycle Edges

Please give me some more input & output.
by aliahmed
Wed Mar 31, 2010 9:54 pm
Forum: Volume 109 (10900-10999)
Topic: 10946 - You want what filled?
Replies: 38
Views: 17535

Re: 10946 - You want what filled?

AC
by aliahmed
Mon Mar 29, 2010 10:59 pm
Forum: Volume 104 (10400-10499)
Topic: 10446 - The Marriage Interview :-)
Replies: 17
Views: 9426

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++); continue; } for...
by aliahmed
Sun Mar 28, 2010 12:10 am
Forum: Volume 109 (10900-10999)
Topic: 10986 - Sending email
Replies: 65
Views: 25862

Re: 10986 - Sending email

Cut after Accepted...
by aliahmed
Sat Mar 20, 2010 10:35 am
Forum: Volume 113 (11300-11399)
Topic: 11385 - Da Vinci Code
Replies: 70
Views: 22544

Re: 11385 - Da Vinci Code

Remove after ACC
by aliahmed
Tue Jan 26, 2010 9:01 pm
Forum: Volume 117 (11700-11799)
Topic: 11770 - Lighting Away
Replies: 27
Views: 8204

Re: WA in problem 11770

My code accepted after using topological sort & dfs
thanx robot
by aliahmed
Sun Nov 01, 2009 11:07 am
Forum: Volume 116 (11600-11699)
Topic: 11639 - Guard the Land
Replies: 7
Views: 3421

Re: 11639 - Guard the Land

Acc

CODE REMOVED
by aliahmed
Tue Sep 15, 2009 9:14 pm
Forum: Volume 4 (400-499)
Topic: 486 - English-Number Translator
Replies: 27
Views: 6721

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 ni...
by aliahmed
Tue Sep 08, 2009 11:24 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 33145

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; count1=0; cc=0; w...
by aliahmed
Fri Sep 04, 2009 12:42 pm
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 16338

Re: 136 Ugly Number Presentation Error

You're just missing "\n";
remove after accepted
by aliahmed
Thu Jul 16, 2009 11:45 pm
Forum: Volume 4 (400-499)
Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
Replies: 44
Views: 10311

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) { if(ch=='*...
by aliahmed
Thu Jul 09, 2009 9:19 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 59208

Re: 10200 - Prime Time

Thanks mf.

Accepted after using eps
by aliahmed
Sun Apr 26, 2009 8:49 pm
Forum: Volume 115 (11500-11599)
Topic: 11532 - Simple Adjacency Maximization
Replies: 9
Views: 2708

Re: 11532 - Simple Adjacency Maximization

ACC
It was wrong for 3 1
by aliahmed
Mon Apr 06, 2009 11:58 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 37370

Re: 10013 - Super Long Sums

Getting Runtime Error.....
Can anyone help me

Got AC. Thanks Obaida
by aliahmed
Fri Apr 03, 2009 1:48 am
Forum: Volume 115 (11500-11599)
Topic: 11586 - Train Tracks
Replies: 14
Views: 8091

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..

Go to advanced search