Search found 37 matches

by ranacse05
Sun Apr 22, 2007 8:06 am
Forum: Volume 101 (10100-10199)
Topic: 10127 - Ones
Replies: 32
Views: 12581

10127--need more sample I/O

Hi there plz give me some I/O of 10127
by ranacse05
Sat Apr 21, 2007 8:39 pm
Forum: Volume 104 (10400-10499)
Topic: 10432 - Polygon Inside A Circle
Replies: 62
Views: 20421

My calculator gives me 12.566 as output for input 2 2000 but my program gives output 12.571 where is the bug? #include "stdio.h" #include "math.h" int main() { int R,L; double r,l,area,con,pi=22.0/7.0,re=pi/180.0; double x,s; while(scanf("%d %d",&R,&L)==2) { r=(double)R; l=(double)L; con=360.0/l; co...
by ranacse05
Fri Apr 20, 2007 9:38 pm
Forum: C
Topic: About EOF
Replies: 3
Views: 5696

About EOF

Hi
how can i take a string as input till EOF??
by ranacse05
Fri Apr 20, 2007 5:37 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37156

Where is the bug? #include<stdio.h> #include<string.h> int main() { char a[1000]; int i,j; int c[160],v[160]; int ln,t; while(gets(a)) { ln=strlen(a); for(i=0;i<160;i++) { v =i+33; c =0; } for(j=33;j<194;j++) for(i=0;i<ln;i++) { if(a ==j) c[j-33]++; } for(i=0;i<=159;i++) for(j=i+1;j<=160;j++) { if(c...
by ranacse05
Thu Apr 19, 2007 9:25 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31511

Rocky try this : #include "stdio.h" int main() { int a,b,i,j,k,l,num,count,total; total=0; while(scanf("%d",&num)==1) { count=0; for(l=0;l<num;l++) { scanf("%d %d",&a,&b); printf("\n"); total+=b; for(k=0;k<b;k++) { for(i=0;i<a;i++) { for(j=0;j<i+1;j++) printf("%d",i+1); printf("\n"); } count++; for(...
by ranacse05
Mon Apr 16, 2007 4:49 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 58138

LZ try long long int.your vc++ compilar will not support it but judge's pc'll suport it bcoz they use GCC/G++ compilar
by ranacse05
Mon Apr 16, 2007 4:42 pm
Forum: Volume 100 (10000-10099)
Topic: 10071 - Back to High School Physics
Replies: 49
Views: 7682

no answer can be nagetive
by ranacse05
Sun Apr 15, 2007 8:07 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 58138

LZ why you take char when you can use long long int???
by ranacse05
Sat Apr 14, 2007 3:55 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31511

Why PE ? plz help me #include "stdio.h" int main() { int a,b,i,j,k,num; while(scanf("%d",&num)==1) { for(i=0;i<num;i++) { scanf("%d %d",&a,&b); printf("\n"); for(k=0;k<b;k++) { for(i=0;i<a;i++) { for(j=0;j<i+1;j++) printf("%d",i+1); printf("\n"); } for(i=a-2;i>=0;i--) { for(j=0;j<i+1;j++) printf("%d...
by ranacse05
Sat Apr 14, 2007 12:48 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31511

Why output Limit E...??????


*************code removed***************
by ranacse05
Sat Apr 14, 2007 12:36 pm
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 31195

Tell me where is the error? #include<stdio.h> int main() { int num,a,b,i; long long unsigned int c; while(scanf("%d",&num)==1) { c=0;a=1;b=1; for(i=3;i<=num;i++) { c=a+b; a=b; b=c; } printf("The Fibonacci number for %d is %llu\n",num,c); } return 0; }
by ranacse05
Sat Apr 14, 2007 9:48 am
Forum: Volume 109 (10900-10999)
Topic: 10921 - Find the Telephone
Replies: 23
Views: 8168

Ya i tryed that but the output was unexpected.Should i break then?How i change it?plz help me i cant get any solution
by ranacse05
Fri Apr 13, 2007 10:11 am
Forum: Volume 109 (10900-10999)
Topic: 10921 - Find the Telephone
Replies: 23
Views: 8168

HERE is my coad again and i got WA again

*************code removed***************
how can i stop the input??
by ranacse05
Tue Apr 10, 2007 10:41 am
Forum: Volume 109 (10900-10999)
Topic: 10921 - Find the Telephone
Replies: 23
Views: 8168

10921 - Find the Telephone

*************code removed***************
by ranacse05
Sun Apr 08, 2007 10:33 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 58138

Thanks Jan,at last i got AC,Can i Get ur email address?I'm in 3rd semister in RUET,(CSE).Some time i'll ask u for help bcoz this board take too much time. :lol:

Go to advanced search