Page 1 of 3
10992 - The Ghost of Programmers
Posted: Sat Feb 11, 2006 7:36 pm
by arsalan_mousavian
hi
can anybody give me some tricky i/o ? cause i got WA on this problem
thanks in advance
Posted: Sat Feb 11, 2006 7:41 pm
by mf
Y may be less than 2148. Obviously, the output for such cases should be "no ghost."
Posted: Sat Feb 11, 2006 7:50 pm
by helloneo
mf wrote:Y may be less than 2148. Obviously, the output for such cases should be "no ghost."
sure i did handle that case.. maybe something else..
Posted: Sat Feb 11, 2006 8:02 pm
by mf
Here's some I/O. Check your spelling of the names.
Code: Select all
332525673007965087892773
1
2147
2148
2149
2150
95612385845354974856360464459504945652183158751232
53387
0
Code: Select all
332525673007965087892773
Ghost of Shahriar Manzoor!!!
Ghost of Derek Kisman!!!
1
No ghost will come in this year
2147
No ghost will come in this year
2148
Ghost of Tanveer Ahsan!!!
Ghost of Shahriar Manzoor!!!
Ghost of Adrian Kugel!!!
Ghost of Anton Maydell!!!
Ghost of Derek Kisman!!!
Ghost of Rezaul Alam Chowdhury!!!
Ghost of Jimmy Mardell!!!
Ghost of Monirul Hasan!!!
Ghost of K. M. Iftekhar!!!
2149
No ghost will come in this year
2150
Ghost of Tanveer Ahsan!!!
95612385845354974856360464459504945652183158751232
Ghost of Tanveer Ahsan!!!
Ghost of Adrian Kugel!!!
Ghost of Jimmy Mardell!!!
Ghost of K. M. Iftekhar!!!
53387
No ghost will come in this year
Posted: Sun Feb 12, 2006 12:56 am
by Darko
Code: Select all
Y may be less than 2148. Obviously, the output for such cases should be "no ghost."
Sigh, I shouldn't be doing these 5am things... I handled that case nicely, so the difference wasn't negative, heh.
Darko
Posted: Sun Feb 12, 2006 4:21 am
by erdos
Shouldn't we subtract from the given year 2148?
I guess so.
Otherwise for the given input (2500 for instance) the answer would be other.
Could you please give more input?
Posted: Sun Feb 12, 2006 5:15 am
by lord_burgos
erdos wrote:Shouldn't we subtract from the given year 2148?
I guess so.
Otherwise for the given input (2500 for instance) the answer would be other.
Could you please give more input?
intput
Code: Select all
2148
2147
4654615786132154654136465432146451321
1321346523123131320321321321231213132
2146
2145
1444
0
output
Code: Select all
2148
Ghost of Tanveer Ahsan!!!
Ghost of Shahriar Manzoor!!!
Ghost of Adrian Kugel!!!
Ghost of Anton Maydell!!!
Ghost of Derek Kisman!!!
Ghost of Rezaul Alam Chowdhury!!!
Ghost of Jimmy Mardell!!!
Ghost of Monirul Hasan!!!
Ghost of K. M. Iftekhar!!!
2147
No ghost will come in this year
4654615786132154654136465432146451321
No ghost will come in this year
1321346523123131320321321321231213132
Ghost of Tanveer Ahsan!!!
Ghost of K. M. Iftekhar!!!
2146
No ghost will come in this year
2145
No ghost will come in this year
1444
No ghost will come in this year
good lock
Posted: Sun Feb 12, 2006 5:46 am
by Abednego
Does anyone know what the cause of the Presentation Errors is? There are twice as many PE's as AC's. I tried printing a blank line after each case and between cases - PE.
Posted: Sun Feb 12, 2006 6:15 am
by tywok
i think during contest you had to write the last blank line if you wanted it to be AC. That's why most submitters got PE, because the submitted the code written during contest
Posted: Sun Feb 12, 2006 6:53 am
by Abednego
I tried both - with the extra blank line and wihout. I also tried submitting with no blank lines. PE every time.
Posted: Sun Feb 12, 2006 7:03 am
by arsalan_mousavian
thanks mf , i got AC

Posted: Sun Feb 12, 2006 8:33 am
by TISARKER
Sorry For my posting code.
I have tried all possible case under my ability.
But can not understand for which i am getting WA.
Please help me
Posted: Sun Feb 12, 2006 10:15 am
by Eduard
TISARKER you check leap year not for given year,but for year-2148,it is your only mistake!
Posted: Sun Feb 12, 2006 12:33 pm
by TISARKER
Eduard wrote:TISARKER you check leap year not for given year,but for year-2148,it is your only mistake!
Thanks Eduard
Many Many thanks .It just a silly but great mistake.

Posted: Tue Feb 14, 2006 4:09 pm
by lonelyone
any more test data please
I got wrong answer all the time