I don't know what's wrong ?
This is my source:
[c]#include<stdio.h>
#include<stdlib.h>
#include<math.h>
main()
{
int n,i,j,result[50],temp[50],size,sizet,s;
double t,max;
scanf("%d",&n);
s=0;
t=0;
max=0;
for(j=2;j<(n+1)/2;j++)
{
for(i=j;s+i<=n;i++)
{
s+=i;
t+=log10(i);
temp[i-2]=i ...
Search found 2 matches
- Mon Mar 17, 2003 7:07 pm
- Forum: Volume 6 (600-699)
- Topic: 668 - Parliament
- Replies: 12
- Views: 6007
- Thu Mar 13, 2003 10:28 pm
- Forum: Algorithms
- Topic: HELP!!!!!!!!!!!!!!!
- Replies: 0
- Views: 2184
HELP!!!!!!!!!!!!!!!
I need a algorithm for the following problem.If someone get the idea, could you tell me?Thanks in advance.
-------------------------------------------------------------------------------------
Edge Detection
Time Limit:5S Memory Limit:10000K
Total Submit:34 Accepted:3
Description
IONU Satellite ...
-------------------------------------------------------------------------------------
Edge Detection
Time Limit:5S Memory Limit:10000K
Total Submit:34 Accepted:3
Description
IONU Satellite ...