2020年1月14日

B - Fedya and Maths

摘要: B - Fedya and Maths Fedya studies in a gymnasium. Fedya's maths hometask is to calculate the following expression: (1^n + 2^n + 3^n + 4^n) mod 5 for g 阅读全文

posted @ 2020-01-14 21:06 Aminers 阅读(157) 评论(0) 推荐(0) 编辑

A - k-rounding

摘要: A - k-rounding For a given positive integer n denote its k-rounding as the minimum positive integer x, such that x ends with k or more zeros in base 1 阅读全文

posted @ 2020-01-14 15:56 Aminers 阅读(148) 评论(0) 推荐(0) 编辑

数论 C - A/B

摘要: C - A/B 要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。 Input 数据的第一行是一个T,表示有T组数据。 每组数据有两个数n(0 <= n < 9973)和B(1 <= B <= 10^9)。 Out 阅读全文

posted @ 2020-01-14 15:27 Aminers 阅读(222) 评论(0) 推荐(0) 编辑

D - DFS HDU - 2660

摘要: D - DFS HDU - 2660 I have N precious stones, and plan to use K of them to make a necklace for my mother, but she won't accept a necklace which is too 阅读全文

posted @ 2020-01-14 01:00 Aminers 阅读(111) 评论(0) 推荐(0) 编辑

导航