Search found 8 matches

by debugger
Sun Sep 14, 2008 1:17 pm
Forum: Volume 103 (10300-10399)
Topic: 10327 - Flip Sort
Replies: 81
Views: 22619

Re: 10327 - Flip Sort --> more inputs

Input Minimum exchange operations : 6 Minimum exchange operations : 16 Minimum exchange operations : 0 Minimum exchange operations : 19 Minimum exchange operations : 168 Minimum exchange operations : 67 Do your code is accepted?? I am quite confused! :roll: Though i do not get ac, but your output h...
by debugger
Tue Sep 09, 2008 9:03 pm
Forum: Volume 102 (10200-10299)
Topic: 10221 - Satellites
Replies: 34
Views: 13220

Re: 10221 - Satellites

Please say, what is my wrong? i am so suppressed. #include<stdio.h> #include<math.h> int main(){ double s,a,pi,chord,rad,arc; char ch[6]; pi=2*acos(0.0); while((scanf("%lf %lf %s",&s, &a, &ch))==3){ if(ch[0]=='m') a=a/60; if(a>180) a=a-180; rad=pi*a/180; if(a==180){ arc=pi*(s+6440); chord=2*(s+6440)...
by debugger
Mon Sep 08, 2008 10:34 pm
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 15718

Re: 10195 - The Knights Of The Round Table

What is wrong with my code? #include<stdio.h> #include<math.h> int main(){ double a,b,c,s,r; while((scanf("%lf %lf %lf",&a,&b,&c))==3){ if(a==0||b==0||c==0) r=0.0000; else{ s=(a+b+c)/2.0000; r=sqrt((s-a)*(s-b)*(s-c)/s); } printf("The radious of the round table is: %.3lf\n",r); } return 0; please som...
by debugger
Sun Sep 07, 2008 10:18 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60985

Re: Fantastic

Joseph Kurniawan wrote:I

Code: Select all

suggest to use "semi-hardcode".

You are a very nice man. my idea is also like so.very nice. :lol: :lol: :lol: :lol: :lol: :lol:
by debugger
Fri Sep 05, 2008 12:36 pm
Forum: Volume 102 (10200-10299)
Topic: 10210 - Romeo and Juliet !
Replies: 8
Views: 5058

Re: 10210 - Romeo & Juliet !

Please say why i amng wrong answer? My code below.please.

Code: Select all


code removed after accepted
please some body reply.
by debugger
Mon Sep 01, 2008 11:00 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 24475

Re: 160 WA?? format

Hi, i cant understand the output format. Anybody will help me make the format right? Following is my code. #include<stdio.h> int main(){ int numeretor,count=0,i,denomeretor,p[25]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97},fact[102]={0},j=0; int n,k,m; for(;;){ scanf("%d...
by debugger
Mon Sep 01, 2008 4:03 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 56928

Re: 10035 - Primary Arithmetic

Can any body say what is wrong with this code. I get wrong answer but i tested my code for many critical input.Please help me. following is my code: #include<stdio.h> int main(){ int a,b,a1[10],b1[10],carry; int i,j,k,sum,max; char ch; for(;;){ scanf("%d %d",&a,&b); if(a==0 && b==0) break; else{ car...
by debugger
Mon Sep 01, 2008 3:36 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 56928

Re: 10035 - Primary Arithmetic

can any body give some critical input case? :wink:

Go to advanced search