thank you anyway , i've got accepted because of all your suggestion.
best regards,
awik
Search found 14 matches
- Mon Jun 23, 2003 9:16 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317994
- Fri Jun 20, 2003 12:37 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10008 - What's Cryptanalysis?
- Replies: 55
- Views: 27239
- Tue Jun 10, 2003 12:44 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10008 - What's Cryptanalysis?
- Replies: 55
- Views: 27239
10008
i don't know why i got wa on my code
thank you, i'll wait for your replies.
thank you, i'll wait for your replies.
- Tue Jun 03, 2003 6:59 am
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 83903
- Mon Jun 02, 2003 12:00 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 83903
10070
what's wromg with my program :cry: ? would anyone tell me what's my wrong? this is my code :
[c]
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
int main()
{
char s[10000];
int y[10000];
int len,i,m4,m15,m55,l,h,b,a,cek;
while(scanf("%s",s)==1)
{
fflush(stdin);
len ...
[c]
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
int main()
{
char s[10000];
int y[10000];
int len,i,m4,m15,m55,l,h,b,a,cek;
while(scanf("%s",s)==1)
{
fflush(stdin);
len ...
- Wed May 21, 2003 11:21 am
- Forum: Volume 4 (400-499)
- Topic: 443 - Humble Numbers
- Replies: 82
- Views: 18055
runtime in humble number (443)
is there anyway to faster my program?? :( this is my code :
[c]
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int main()
{
int in[100],k=0,l,mod,m,n,o;
double j;
char seal[20],an[3];
unsigned long a,i,ctr=1,d,temp,z[100],ans;
for(;;)
{
scanf("%d",&in[k]);
fflush ...
[c]
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int main()
{
int in[100],k=0,l,mod,m,n,o;
double j;
char seal[20],an[3];
unsigned long a,i,ctr=1,d,temp,z[100],ans;
for(;;)
{
scanf("%d",&in[k]);
fflush ...
- Wed May 21, 2003 9:35 am
- Forum: Volume 4 (400-499)
- Topic: 443 - Humble Numbers
- Replies: 82
- Views: 18055
443 - Humble Numbers
i want to ask, is there a way to get my program faster ? it used 10.031 seconds, it's more 0.031 seconds to get acc :( .
here is my code :
[c]
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
int in;
double j;
unsigned long a,i,ctr=1,d,temp;
do{
scanf("%d",&in);
fflush ...
here is my code :
[c]
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
int in;
double j;
unsigned long a,i,ctr=1,d,temp;
do{
scanf("%d",&in);
fflush ...
- Mon May 19, 2003 9:40 am
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101811
- Mon May 19, 2003 8:37 am
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101811
- Sun May 18, 2003 3:53 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101811
10035
can you tell me what's my wrong? i've tried some exceptions like 988+15-->3 carry operations, 188+15--> 2 carry operations, and the other one is 100+0--> No carry operation. tell me if there's something wrong
.
thank you.
i'm waiting for your replies.
best regards,
awik

thank you.
i'm waiting for your replies.
best regards,
awik
- Sun May 18, 2003 1:13 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317994
- Sun May 18, 2003 12:53 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317994
- Sun May 18, 2003 12:22 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317994
wrong answer at 3n+1 problem (100)
i'm sorry about the previous one. can you tell me waht's my wrong? and it said that it ran during 4.189 seconds
. this is my code with some of my explanations.
i wait for your replies. thank you.
best regards,
awik

i wait for your replies. thank you.
best regards,
awik
- Sun May 18, 2003 12:09 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317994
problem with 3n+1, always wrong answer
i'm still a newbie, can anybody tell what's my wrong
c
#include<stdio.h>
#include<stdlib.h>
int panjang(unsigned long a,unsigned long b)
{
int ctr=0,cycle=1,i;
unsigned long c,other_a,temp,x=1,y=1,k=1,l=1;
if(a>b)
{
c=a;
a=b;
b=c;
}
other_a=a;
while(other_a<=b)
{
ctr=1;
temp=other_a ...
c
#include<stdio.h>
#include<stdlib.h>
int panjang(unsigned long a,unsigned long b)
{
int ctr=0,cycle=1,i;
unsigned long c,other_a,temp,x=1,y=1,k=1,l=1;
if(a>b)
{
c=a;
a=b;
b=c;
}
other_a=a;
while(other_a<=b)
{
ctr=1;
temp=other_a ...