|
|
back to boardDiscussion of Problem 1627. JoinI am really poor So, I just wrote solution with C long double and got WA #5 (Laplacian). Then I just rewrote it in Python with decimal.py and got WA...#3! Then I started to add more precision to decimal and got TLE #3. Yeah, I use some epsilon constant and add it to determinant before convert determinant to integer and get its modulo 10**9. Re: I am really poor Lol FINALLY understand I should just made M[row] [col] =LCM Re: I am really poor Yeah! I tried this: 3 3 *** *.* *** And got zero, not one! Should correct... Re: I am really poor WA #8. I am really frustrated. http://ideone.com/7nPKN0 That time without fractions. Used decimal with 1450 digits after point. Edited by author 08.05.2017 18:47Re: I am really poor I realized I need not determinant of a whole matrix but just a minor. http://ideone.com/5H6ARHSubmitted corrected solution with Fractions. Buuut!! WA #8 still... |
|
|