摘要: Modular InverseTime Limit:2 Seconds Memory Limit:65536 KBThe modular modular multiplicative inverse of an integeramodulomis an integerxsuch thata-1≡x(modm). This is equivalent toax≡1 (modm).InputThere are multiple test cases. The first line of input is an integerT≈ 2000 indicating the number of test 阅读全文
posted @ 2014-04-02 22:52 Jeremy Wu 阅读(300) 评论(0) 推荐(0)