Search found 47 matches

by osan
Wed Dec 17, 2003 5:16 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 56225

10035

u use long int which range is 2^31-1= 2147483647

it is a 10 digits number. but 2147483647 <5000000000.

so u can use here unsigned long. u hav to %lu for unsigned long.

& one thing fmod is a function which use to mod a floating number.

OSAN
by osan
Wed Dec 17, 2003 5:02 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 38845

10013

i didn't check ur code.
u told about smith number on top.
smith number is a problem which's number is 10042 && u told it is 10013. make sure about the problem.

& one thing fmod is a function which use to mod a floating number.

OSAN
by osan
Fri Dec 12, 2003 7:25 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 77746

i think u couldn't understand the problem yet

CHECK THIS INPUT :roll: INPUT 4 1 4 2 3 5 1 4 2 -1 6 10 1 2 3 4 5 6 7 8 9 10 10 1 2 4 7 11 16 22 29 37 46 10 -1 -2 -4 -7 -11 -16 -22 -29 -37 -46 10 -1 -1 -4 -7 -11 -16 -22 -29 -37 -46 1 1 2 1 2 2 2 1 4 0 4 2 3 4 1 3 2 4 1 2 6 1 4 3 7 5 10 REAL OUTPUT Jolly Not jolly Not jolly Jolly Jolly Not jolly J...
by osan
Sun Nov 23, 2003 4:34 pm
Forum: Volume 105 (10500-10599)
Topic: 10515 - Powers Et Al.
Replies: 124
Views: 29210

think abt this

Dear bayzid

i think it would be tuff for you to handle last two digit or or last digit. after getting input as a string.

i hope u know about the function strlen.
try to use this

hope you understand whatever i wanna to say.

if you can't mail me then.
by osan
Wed Nov 19, 2003 5:11 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 21028

check this input & output

INPUT
abc
798999
Have a Nice Day !
9900199
abbadc
aaa
11167001
ABC
AbCD
OUTPUT
998979
cba
332312179862310199501872379231018117927
cdc
9900179898979
797979
dLo
766656
86768956
by osan
Mon Nov 10, 2003 5:03 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 17187

i think if you dont wanna use

1. Change long double to double.
2. Change fmodl to fmod.
3. Change Lf to lf.

u can use unsigned long.
but u have to use %lu.
by osan
Mon Nov 10, 2003 4:39 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 16768

junjieliang
i used long double to hold the final value
by osan
Mon Nov 10, 2003 4:21 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 16768

dear Joseph Kurniawan

thanks for your messege. actually i was confused about that. well i will check it in GCC.

i'm new in porgramming side. so don't have that kind of knowledge.
by osan
Sun Nov 09, 2003 1:12 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 28068

Aengus,

I think you didn
by osan
Sun Nov 09, 2003 1:09 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 28068

onece again telling you remove your code from the forum.
by osan
Sun Nov 09, 2003 1:08 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 28068

Aengus,

I think you didn
by osan
Sat Nov 08, 2003 8:19 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 28068

check this input & output

Dear Aengus

Check these
1 2
Between 1 and 2, 1 generates the longest sequence of 3 values.
2 1
Between 1 and 2, 1 generates the longest sequence of 3 values.
by osan
Sat Nov 08, 2003 8:12 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 16768

confused about 369

I
by osan
Thu Nov 06, 2003 10:14 pm
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 6888

Dear Shaka_RDR i think you are wrong about i've found it!!! its all about grammar in english.... i forgot 111 and 1111 is not follow by th but by st..... its also for 112, 1112, 113 and 1113..... really embarassing ...... Here some input and output of 443 Input 1 2 3 11 12 13 21 32 43 111 112 113 Ou...
by osan
Wed Nov 05, 2003 5:38 pm
Forum: Volume 105 (10500-10599)
Topic: 10515 - Powers Et Al.
Replies: 124
Views: 29210

Dear bayzid Input 17 11 2 12 3 10 Your output 7 4 1 Output should be 3 6 9 I think you should hold at least last 2 digit of n. Your code m=7 & n=1; 1%4= 1; For the m=7 & n=1 Result = 7. My code m=7 & n=11 11%4=3; For m=7 & n=3 Result = 3. i think you got that whatever i wanna say Please remove your ...

Go to advanced search