摘要:
取模运算的规则如下: 1、(a + b) % p = (a % p + b % p) % p 。 2、(a - b) % p = (a % p - b % p) % p 。 3、(a * b) % p = (a % p * b % p) % p 。 4、a ^ b % p = ((a % p)^b) 阅读全文
摘要:
Description You are given N number of books. Every ith book has Pi number of pages. You have to allocate books to M number of students. There can be m 阅读全文