Search found 13 matches

by S.M.ferdous
Sun Dec 30, 2007 8:02 pm
Forum: Volume 110 (11000-11099)
Topic: 11015 - 05-2 Rendezvous
Replies: 48
Views: 24006

just to tell that this program does not have any case regarding multiple edge and M can be zero although program statement does not support this.
by S.M.ferdous
Sat Dec 29, 2007 9:00 pm
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 34139

for 12300 my output is:

32100 - 123 = 31977 = 9 * 3553

is it wrong?
by S.M.ferdous
Sat Dec 29, 2007 8:41 pm
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 34139

11371 - Number Theory for Newbies

Code: Select all

        
        thanks to sohel vai and fpavetic.

by S.M.ferdous
Sun Nov 25, 2007 4:25 pm
Forum: Volume 113 (11300-11399)
Topic: 11356 - Dates
Replies: 3
Views: 4866

11356 - Dates

I think its an easy problem but I m getting wrong answer!
Here is my code:

Code: Select all

    code removed after ac .
Many many thanks to hamedv...... :D


S.M.Ferdous
by S.M.ferdous
Wed Nov 14, 2007 5:50 pm
Forum: Volume 107 (10700-10799)
Topic: 10783 - Odd Sum
Replies: 34
Views: 22117

It may be late.
std::cout <<"Case " << i+1 << ": " << calc (first, second)<<endl;


put an endline here also.

S.M.Ferdous
by S.M.ferdous
Wed Nov 14, 2007 5:11 pm
Forum: Volume 113 (11300-11399)
Topic: 11332 - Summing Digits
Replies: 17
Views: 12032

If a number is divisible by 9 the sum of its digits succesively reduced to 9
or the sum of digits will be reduced to num mod 9.

As for xample 198 = 1+9+8 = 18 = 1+8 = 9 (as 198 mod 9 == 0)
agan 203 = 2+0+3 = 5 (203 mod 9 =5)

so in this problem one doesn't need to calculate any summation but ...
by S.M.ferdous
Sun Aug 26, 2007 9:19 pm
Forum: Volume 112 (11200-11299)
Topic: 11258 - String Partition
Replies: 18
Views: 13402

11258 wa

hi

i m getting wrong ans with 11258 i cant find why ?
can any one help me i am giving the code here.



//string partition 11258

#include<stdio.h>
#define LIMIT 2147483647L

int main(void)
{
long long N,num,Tnum,prevnum,i,j;
char a[250];

scanf("%lld",&N);

for(i=0; i<N; i++)
{
scanf("%s ...
by S.M.ferdous
Sun Mar 25, 2007 6:27 am
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 37241

you have to take input till EOF. your code just take one line as input and then break.

just change these portion

scanf("%c", &ins); to while( scanf("%c", &ins)==1){
.......;
......;
printf("%ld\n", words);
words=0;
}

also use return 0; as successful terminator.
use long as words because the ...
by S.M.ferdous
Sun Jan 07, 2007 8:48 pm
Forum: Volume 4 (400-499)
Topic: 498 - Polly the Polynomial
Replies: 73
Views: 21961

How to get even number line input???(498,10268)

Hello to all

I have solved 498 problem but my problem in getting input.

I am not understanding how to accept an even number of lines of text.
Another puzzling matter is that I can't correctly implement the breaking condition.

I need some help.plz help me. :roll:
by S.M.ferdous
Tue Dec 19, 2006 3:43 pm
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 13561

Thanks jan bhai.

It is very helpful to me.I got accepted :lol:
by S.M.ferdous
Sun Dec 17, 2006 6:22 pm
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 13561

Thanks for your kind reply.

Please give me the logic to solve the problem. I go to the URL, but it is too difficult to search the correct thing which i required.Please discuss your logic.
by S.M.ferdous
Sun Dec 17, 2006 5:29 pm
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 13561

10678 - The Grazing Cow

Hi everyone

I know its a very easy problem. it seems ellipse to me . I also know the area of ellipse is pi*a*b.

I know 'a' but how could I get 'b'. plz some one help me.
by S.M.ferdous
Wed Nov 08, 2006 5:10 am
Forum: Volume 6 (600-699)
Topic: 602 - What Day Is It?
Replies: 56
Views: 27995

602 WA

i have tried but got wa.
if the year is 1752 & month is september &date is within 3-13 what is the output. invalid date?

How could be the integer limit.

can any one help me giving some tricky tests. :roll:

Go to advanced search