Search found 5 matches

by bangla
Mon Sep 27, 2004 8:34 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 45418

You are correct. I changed it only.
Thank you.
by bangla
Sun Sep 26, 2004 10:06 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 45418

Thank you Ghust_omega.
Finally I got AC!!
by bangla
Sun Sep 26, 2004 9:44 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 45418

Thank you for your help.
I have modified my code accordingly. But the judge said it gave compile error. Why? What does it mean? My program generate the output as:
input:

46
47
48
100
49
50
51
90
67
52
53
46
0

output:

46! = 42 21 10 6 4 3 2 2 2 1 1 1 1 1
47! = 42 21 10 6 4 3 2 2 2 1 1 ...
by bangla
Thu Sep 23, 2004 9:57 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 45418

160(factors and factorials)WHY WRONG ANSWER??????PLEASE HELP

I have got WA for the problem 160 (factors and factorials). Please tell me what is wrong with my code?
[c]
#include<stdio.h>
#include<string.h>
void main()
{
int primes[]={ 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 };
int factors[30],N,n,k,sum;
while(scanf ...
by bangla
Mon Sep 20, 2004 10:19 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 45418

160:WHY WRONG ANSWER. PLEASE HELP.

I have got WA for the problem 160 (factors and factorials). Please tell me what is wrong with my code? Here is my source code.
[c]
#include<stdio.h>
#include<string.h>
void main()
{
int primes[]={ 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 };
int factors[30],N,n,k,sum ...

Go to advanced search