摘要:
Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following: Choo 阅读全文
摘要:
The Euler function phi is an important kind of function in number theory, (n) represents the amount of the numbers which are smaller than n and coprim 阅读全文
摘要:
Chiaki has an n × m matrix A. Rows are numbered from 1 to n from top to bottom and columns are numbered from 1 to m from left to right. The element in 阅读全文
摘要:
Given A,B,C, You should quickly calculate the result of A^B mod C. (1<=A,C<=1000000000,1<=B<=10^1000000). Input There are multiply testcases. Each tes 阅读全文