ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1518
. Jedi Riddle 3
AC 0.14 sec
Posted by
partisan
11 Jun 2009 01:06
Avoiding taking modulo in each addition during matrix multiplication by storing value of res[i][j] in long long (int64) and taking modulo after calculating reduced time from 1.265 to 0.14!
© 2000–2024
Timus Online Judge Team
. All rights reserved.