Search found 4 matches

by epilos@CodeHolic
Sat Aug 30, 2008 6:43 pm
Forum: Volume 114 (11400-11499)
Topic: 11414 - Dream
Replies: 8
Views: 7975

11414 - Dream

#include <stdio.h>

int testcase;
int point_num;
int arr[101];
int cnt;

int main()
{
freopen("data.txt","r",stdin);
int i,j;
scanf("%d", &testcase);
while(testcase--)
{
cnt=0;
scanf("%d", &point_num);
for(i=0 ; i<point_num ; i++)
{
scanf("%d", &arr[i]);
}
for(i=0 ; i<point_num-1 ; i ...
by epilos@CodeHolic
Sat Mar 01, 2008 5:39 pm
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 23343

350 endless loop...

CUT After AC

1, 2, 4 example is right....

but

third example..... infinity....

why???

example is wrong??



Sorry my poor english...


Thanks a lot!!!!!
by epilos@CodeHolic
Sat Mar 01, 2008 8:56 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 45549

sample input

53
0

Sample output

53! = 49 23 12 8 4 4 3 2 2 1 1 1 1 1 1
******1

Ur output

53! = 49 23 12 8 4 4 3 2 2 1 1 1 1 1 1
**1


use 6 space instead of 1 in d second line and increase array size to 102 for safety & print "\n" just after printing output.

HOPE THIS HELPS :D ...
by epilos@CodeHolic
Sat Mar 01, 2008 6:07 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 45549

160 WA

DELETE After AC

I think all output is right....
But WA....

Why???

Help me...

Go to advanced search