Time limit
1000 ms
Memory limit
262144 kB
Source
Codeforces Round #226 (Div. 2)
Tags
math matrices *2300
Editorial
Announcement Tutorial
Descriptions:

Bear in the Field

CodeForces - 385E