Search found 2 matches

by Raffan_033
Sat Jul 12, 2008 9:40 pm
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25512

Re: acm-591 prob

Can any one plz help with the code?i donno whats wrong.
i'm stuck for a very very very long time with this problem.

#include<stdio.h>

int main(void)
{
int stack_height[50]={0};
int n,total_height,average_height,move,count=1,i;


while(scanf("%d",&n)==1)
{

if((n<1)||(n>50))
break ...
by Raffan_033
Wed Feb 13, 2008 4:15 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 45565

I'm continuously getting WA. Anybody PLZ HELP..



#include<stdio.h>
#include<math.h>

int main(void)
{
int frequency[25],i,N,tempN;

int prime[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};

scanf("%d",&N);

while((N>=1)&&(N<=100))
{
printf("\n%3d! =",N);

if ...

Go to advanced search