|
|
If you are from Russia, this should be clear) That should be very good programmers :) Edited by author 08.09.2021 15:24 Edited by author 08.09.2021 15:24 What test number 2 can be? Edited by author 21.02.2021 00:09 12341321 12344321 12991321 12999921 12341991 12344321 12343991 12344321 12344991 12355321 1234554991 1234664321 1234559991 1234664321 1134559921 1134664311 1134998821 1135005311 8999999999 9000000009 89999 90009 1250025 1250521 1999 2002 100003 101101 11111 11111 1000003 1001001 1999992 2000002 1009002 1010101 18 22 36313404080 36313431363 3373687313428241827948801150507677526 3373687313428241828281428243137863733 669262074855963079771197586206281259112 669262074855963079777970369558470262966 242167700017836474388100 242167700018810007761242 16252383 16255261 469342775745586144105609869 469342775745595547577243964 37461293193018561603953493340 37461293193018581039139216473 9194184285169534216966507128749 9194184285169534359615824814919 21 22 1330454685235862 1330454774540331 78336742687917227491028 78336742687978624763387 47923802054017335212073765802860114 47923802054017335253371045020832974 505752 506605 940 949 428540910018912794058956977 428540910018919810019045824 9770330728908946347636591906356869449214 9770330728908946347667436498098270330779 7068416097840258049887921681085 7068416097840258520487906148607 517805724457730620 517805725527508715 506833497 506838605 5820 5885 484243646784563247619038458645194136 484243646784563247742365487646342484 91413688117232096060 91413688122188631419 771886477139587251334596 771886477139931774688177 8304292305552149553379655920949280409378 8304292305552149553443559412555032924038 9628134090110628 9628134114318269 2445193927845273449357413443 2445193927845335487293915442 519 525 6885428526826048829 6885428527258245886 72924386042452563577194755578 72924386042452625424068342927 123012 123321 123131 123321 36408 36463 123 131 Try this tets: 1999992 2000002 1009002 1010101 what is there in test 6 ?? Can anyone please provide some test cases. I have tried all test cases provided in earlier discussions, all of these pass. Still getting WA6. Want to jump off some cliff now, if that might solve this WA6. My programm write this Answers: Test 1 1999 2002 Test 2 1250025 1251521 Test 3 100003 101101 Test 4 1000003 1001001 Test 4 11111 11111 Give me please some tests? Edited by author 04.12.2006 03:35 Why? Help me please. Ans for your test 1 is 2002 :) I'm Sorry is my bags. My programm write 2002 All other tests right I'll give you some test.. just 10 min I think that it will help you:) 18 22 36313404080 36313531363 3373687313428241827948801150507677526 3373687313428241828281428243137863733 669262074855963079771197586206281259112 669262074855963079787970369558470262966 242167700017836474388100 242167700018810007761242 16252383 16266261 469342775745586144105609869 469342775745595547577243964 37461293193018561603953493340 37461293193018681039139216473 9194184285169534216966507128749 9194184285169535359615824814919 21 22 1330454685235862 1330454774540331 78336742687917227491028 78336742688088624763387 47923802054017335212073765802860114 47923802054017335353371045020832974 505752 506605 940 949 428540910018912794058956977 428540910018929810019045824 9770330728908946347636591906356869449214 9770330728908946347777436498098270330779 7068416097840258049887921681085 7068416097840259520487906148607 517805724457730620 517805725527508715 506833497 506848605 5820 5885 484243646784563247619038458645194136 484243646784563248842365487646342484 91413688117232096060 91413688122188631419 771886477139587251334596 771886477140041774688177 8304292305552149553379655920949280409378 8304292305552149553443559412555032924038 9628134090110628 9628134114318269 2445193927845273449357413443 2445193927845335487293915442 519 525 6885428526826048829 6885428527258245886 72924386042452563577194755578 72924386042452625424068342927 36313404080 Why Answer 36313531363? True Answer 36313431363. I think new tests should be added :)))) My AC prog also returns 123012 124421 36408 36563 .... WHY???? IF TRUE 123012 123321 36408 36463 I testing tests.My programm write : 1999 2002 1250025 1250521 100003 101101 1000003 1001001 11111 11111 18 22 36313404080 36313431363 3373687313428241827948801150507677526 3373687313428241828281428243137863733 669262074855963079771197586206281259112 669262074855963079777970369558470262966 242167700017836474388100 242167700018810007761242 16252383 16255261 469342775745586144105609869 469342775745595547577243964 37461293193018561603953493340 37461293193018581039139216473 9194184285169534216966507128749 9194184285169534359615824814919 21 22 1330454685235862 1330454774540331 78336742687917227491028 78336742687978624763387 47923802054017335212073765802860114 47923802054017335253371045020832974 505752 506605 940 949 428540910018912794058956977 428540910018919810019045824 9770330728908946347636591906356869449214 9770330728908946347667436498098270330779 7068416097840258049887921681085 7068416097840258520487906148607 517805724457730620 517805725527508715 506833497 506838605 5820 5885 484243646784563247619038458645194136 484243646784563247742365487646342484 91413688117232096060 91413688122188631419 771886477139587251334596 771886477139931774688177 8304292305552149553379655920949280409378 8304292305552149553443559412555032924038 9628134090110628 9628134114318269 2445193927845273449357413443 2445193927845335487293915442 519 525 6885428526826048829 6885428527258245886 72924386042452563577194755578 72924386042452625424068342927 Some of your answers <KIRILL(ArcSTU)> are wrong!!! 16252383, 9770330728908946347636591906356869449214 and some other It is amazingly if you got AC If you get WA2 test: 123 right aswer 131 but not 222 Thanks, Ilya Mitin, you helped me))) KIRILL(ArcSTU) : did you get an AC? because of below result is correct 16252383 16255261 TEST2 why not be 1250521? I think testing program is incorrect if AC programs give wrong answers :( My program gives correct answers to all test and still WA6 :(( your test 2 is wrong ! true answer : 1250521 In test 1250025 answer must be 1250521. Test: 123131 Answer: 123321 Thanks! Didn't make numbers equal to zero in encreasing numbers after the right one of comparing; sorry, I'm just an idiot... Edited by author 27.03.2019 22:39 def chk(m): for i in range(0, int(len(m)/2)): if m[i] != m[len(m)-i-1]: if m[i] > m[len(m)-i-1]: m[len(m)-i-1] = m[i] else: m[len(m)-i-1] = m[i] m = inc(m, len(m)-i-2) chk(m) return m def inc(y, x): if y[x]<9: y[x] += 1 else: y[x] = 0 inc(y, x-1) return y v = list(input()) l = list(map(int, v)) if(len(v)==1): print(v[0]) else: l = chk(l) print("".join(str(o) for o in l)) I thought index reaching end may be a problem but that can never happen can it?, TLE may be ok but why RTE??? It is because of too many recursion i presume trying to find a work around... def chk(m): for i in range(0, int(len(m)/2)): if m[i] != m[len(m)-i-1]: if m[i] > m[len(m)-i-1]: m[len(m)-i-1] = m[i] else: m[len(m)-i-1] = m[i] m = inc(m, len(m)-i-2) chk(m) return m def inc(y, x): if y[x]<9: y[x] += 1 else: y[x] = 0 inc(y, x-1) return y v = list(input()) l = list(map(int, v)) if(len(v)==1): print(v[0]) else: l = chk(l) print("".join(str(o) for o in l)) you must write "not eoln" no "not eof" and you'll got AC!! THANK YOU!!! Very much! Had WA1. Got desperate, rly, can't find any mistakes. Can't believe it was it. Change this tiny word and get AC! Still, why it makes such difference? I don't understand what's wrong in my program. Give me test 9 please Не могу понять что не так. Уже понял! 1999 2002 Edited by author 19.10.2013 21:24 Edited by author 19.10.2013 21:25 1992 -> 2002 this is right answer, isn't it? Can you be more explicit about the error? I used lots of test cases from discussions and code show's correct results without errors. Do you need me to post my solution? Edited by author 29.07.2015 13:55 Who have the test? Meeeeeeeeeee toooooooooo. Try this data: input: 123401 output: 124421 misprint должен состоять также их одной строки их->из Edited by author 12.01.2014 22:05 IDK why i get WA1. I think my program is working correctly. Edited by author 27.03.2011 12:16 I think not print extra space.My programm print extra space and WA1 I've got AC with program that returns 2552 for input 2433. Edited by author 28.09.2013 04:09 Edited by author 28.09.2013 04:09 Your test was added. Thank you. |
|
|