Search found 14 matches

by awik_10
Mon Jun 23, 2003 9:16 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 183192

thank you anyway , i've got accepted because of all your suggestion.
best regards,
awik
by awik_10
Fri Jun 20, 2003 12:37 pm
Forum: Volume 100 (10000-10099)
Topic: 10008 - What's Cryptanalysis?
Replies: 55
Views: 17402

thank you anyway, i've got an acc. if you have time, would you explain more about fflush()? :-?
best regards,
awik :P
by awik_10
Tue Jun 10, 2003 12:44 pm
Forum: Volume 100 (10000-10099)
Topic: 10008 - What's Cryptanalysis?
Replies: 55
Views: 17402

10008

i don't know why i got wa on my code
thank you, i'll wait for your replies.
by awik_10
Tue Jun 03, 2003 6:59 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 53784

One thing u could try is creating a single function to test for divisibility.
what's that mean, can you explain me for more detail, please?
i've removed the unnecessary thing from my program, but i still don' t get the acc.
thank you,
awik
by awik_10
Mon Jun 02, 2003 12:00 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 53784

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=strlen(s...
by awik_10
Wed May 21, 2003 11:21 am
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 7178

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(stdin); if...
by awik_10
Wed May 21, 2003 9:35 am
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 7178

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(stdin); }whi...
by awik_10
Mon May 19, 2003 9:40 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57435

thank you.
awik
by awik_10
Mon May 19, 2003 8:37 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57435

ya, i've seen what's my fault is. it is because my output without a dot(.), but i've still been seen as a presentation error, not correctly at all. can you tel me the other fault, besides dot that make my program P.E.
thank you
best regards,
awik
by awik_10
Sun May 18, 2003 3:53 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57435

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
by awik_10
Sun May 18, 2003 1:13 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 183192

thank you anyway for your suggestion. :D i've just submitted it and got an acc. it only minus "\n" :wink: .
awik
by awik_10
Sun May 18, 2003 12:53 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 183192

i still don't get it :-? .
Try to output your answer to a file (instead of on the screen).
can you give me more explanation. by the way, thank you

awik
by awik_10
Sun May 18, 2003 12:22 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 183192

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
by awik_10
Sun May 18, 2003 12:09 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 183192

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; while(temp!=1) ...

Go to advanced search