思维题
ZZZ19880423
including
展开
-
Next Mayor--SOJ
One of the oddest traditions of the town of Gameston may be that even the town mayor of the next term is chosen according to the result of a game. When the expiration of the term of the mayor approach...原创 2018-05-22 20:55:59 · 220 阅读 · 3 评论 -
西北大学2019年春季校赛 ( 重现赛 )
https://www.cometoj.com/contest/33/problem/H?problem_id=1462 这个题我把它想的太复杂了,,,,, 有n个数从中选取一些数使这些数的和能被m整除,,重点是n>=m 因为一个整数取余m,余数的取值范围为(0,m-1),并且n>=m;所以n个数的前缀和一定会有两个前缀取余是相同的,或者有一个为0,,, 所以不管是什么情况都能...原创 2019-03-19 19:42:28 · 299 阅读 · 0 评论