|
|
I am sure the Test #11 is wrong!!! Edited by author 18.07.2006 17:23 check this test: 5 2 3 ABCDE AB BE AB the answer is 23 50 8 0 QWERTYUI Answer is 50^8 = 39062500000000 That is right ? But 50 8 2 QWERTYUI QWERT ERTYU Answer is greater than 390625000000000 Why not? I can't understand you. Please tell me. Thank you very musch everybody that have answer my problem. I think that Rybac Michael's program is wrong. My Accepted program think that rigth answer is 39062499000100. Good luck! I debug and test my program for a day I can't find how's wrong. So I want some test data to test my program. Thank you. Maybe your program doesn't work correctly with such test cases when the beginning of one word is the same as the ending of another (or itself). For example, here are a few cases with answers: 3 3 1 QWE QQ The answer is 22, but not 21 as your program might output. And, the one for you to check your long mathematics: 50 8 2 QWERTYUI QWERT ERTYU ETYUI YUIE The answer is 39215055148328 Hope this will help. Good luck! I think your input is incorrect. Please help me! |
|
|