Search found 47 matches

by osan
Mon Jan 12, 2004 8:39 am
Forum: Volume 105 (10500-10599)
Topic: 10515 - Powers Et Al.
Replies: 124
Views: 29184

RICH

welcome Rich!!!
actually i wasn't sure about your code. when i was taking input from file,it was showing some wrong. but those wrong output showing right when i was giving it manually.

that why i was confused.
but at last u got AC. that's a good news. :D

GOOD LUCK
by osan
Fri Jan 09, 2004 2:35 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 31213

REAL OUTPUT FOR THOSE INPUT

INPUT
11
5 8
1 999999
11 25
3 3
5 6
6 7
1 100
9 10
200 300
12 13
1 10

OUTPUT
2
56
2
1
1
1
14
0
8
0
4
by osan
Fri Jan 09, 2004 2:27 pm
Forum: Volume 105 (10500-10599)
Topic: 10515 - Powers Et Al.
Replies: 124
Views: 29184

check this input

GET THE INPUTS FROM FILE & CHECK THE OUTPUT WITH YOUR OUTPUT INPUT 8 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 8 1 8...
by osan
Mon Jan 05, 2004 5:24 pm
Forum: Volume 4 (400-499)
Topic: 446 - Kibbles "n" Bits "n" Bits "n" Bits
Replies: 50
Views: 4432

thanx popel

sorry i misunderstood shamim talk.
i know that wont fell effect. that y i asked that.
by osan
Sun Jan 04, 2004 9:08 pm
Forum: Volume 4 (400-499)
Topic: 446 - Kibbles "n" Bits "n" Bits "n" Bits
Replies: 50
Views: 4432

shamim

wat is difference between %X %x at the time of scanf():
will u tell me please.

as i know it can fell effect at the time of printf();
by osan
Sun Jan 04, 2004 8:35 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 56183

10035

dear problem i think this simple algorithm is enough for this problem. actually ur code i couldn't understand ur algorithm. so try in this way. while(a>0 || b>0) { p=a%10; q=b%10; if(p+q+n>=10) carry++; n=(p+q+n)/10; a=a/10; b=b/10; } & one thing for this problem data type won't be a fact. i was wro...
by osan
Sun Jan 04, 2004 8:57 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 56183

sorry problem i did a mistake

sorry problem i did a mistake unsigned long is 2^32=4294967296 it can't hold 10 digits & for this problem u have no need think abt this.coz Each line of input contains two unsigned integers less than 10 digits. check ur algorithm. i think u hav problem there. & sorry i did the problem long time ago....
by osan
Sat Dec 27, 2003 8:54 pm
Forum: Volume 102 (10200-10299)
Topic: 10222 - Decode the Mad man
Replies: 30
Views: 9025

10222

i couldn't get the problem yet.
but do u consider \n??
& check the keyboard that u r not missing any key.
ok?
by osan
Sat Dec 27, 2003 8:31 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 16746

INPUT OUTPUT FOR 369

if the result is so large. then last 2 or 3 digits are considerable. INPUT 100 20 100 90 100 85 88 12 67 12 100 6 23 5 34 20 17 9 98 6 67 21 34 34 12 11 90 6 80 7 70 7 60 8 50 9 45 10 OUTPUT 100 things taken 20 at a time is 535983370403809682000 exactly. 100 things taken 90 at a time is 173103094564...
by osan
Sat Dec 27, 2003 8:30 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 16746

INPUT OUTPUT FOR 369

if the result is so large. then last 2 or 3 digits are considerable. INPUT 100 20 100 90 100 85 88 12 67 12 100 6 23 5 34 20 17 9 98 6 67 21 34 34 12 11 90 6 80 7 70 7 60 8 50 9 45 10 OUTPUT 100 things taken 20 at a time is 535983370403809682000 exactly. 100 things taken 90 at a time is 173103094564...
by osan
Sat Dec 27, 2003 8:29 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 16746

INPUT OUTPUT FOR 369

if the result is so large. then last 2 or 3 digits are considerable. INPUT 100 20 100 90 100 85 88 12 67 12 100 6 23 5 34 20 17 9 98 6 67 21 34 34 12 11 90 6 80 7 70 7 60 8 50 9 45 10 OUTPUT 100 things taken 20 at a time is 535983370403809682000 exactly. 100 things taken 90 at a time is 173103094564...
by osan
Sat Dec 27, 2003 8:17 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 24992

492

1)advice for you please dont make the code complex. 2) Do not change the case of any letter. <-is that condition ok in your code? giving you some input & output check those for your code INPUT This is the input. He is a boy. Object123oriented,..,.Programming 000000000 aaaaaaaaaaaa Aaaaaaaaaaaa compu...
by osan
Fri Dec 26, 2003 1:21 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 52885

i think u have no need to find much.

as i i know they send u a email. if u didn't disable the option.
there they always tell disucss about the problem. if u dont get WA.

GOOD LUCK
by osan
Wed Dec 17, 2003 6:25 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 52885

check this input & output

please check this input & output. i hope these will help u. INPUT 2200 3000 6000 2000 10500 5500 OUTPUT This is an ordinary year. This is huluculu festival year. This is leap year. This is huluculu festival year. This is leap year. This is huluculu festival year. This is an ordinary year. & one thin...
by osan
Wed Dec 17, 2003 6:22 pm
Forum: Volume 100 (10000-10099)
Topic: 10079 - Pizza Cutting
Replies: 44
Views: 9933

i think u can make more simple the algorithm

any way u have to hold the result in long long or long double. coz it can be bigger than long range.

long double %Lf
long long %lld

result= (n-1)result+n
found the simple equation from that.
anyway if u can't then mail me. i will help u.

Go to advanced search