摘要: 数学解释: 数论中的重要概念。给定一个正整数m,如果两个整数a和b满足a-b能够被m整除,即(a-b)/m得到一个整数,那么就称整数a与b对模m同余, 同余定理:两个整数同时除以一个整数得到的余数相同,则二整数同余。记作a ≡ b(mod m)。 实际上我们在ACM只要记住两个公式即可:(只对“+” 阅读全文
posted @ 2019-04-16 23:13 叶坚持 阅读(4569) 评论(2) 推荐(0)
摘要: A. Thanos Sort time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Thanos sort is a supervill 阅读全文
posted @ 2019-04-16 00:32 叶坚持 阅读(472) 评论(0) 推荐(0)
摘要: Given a tree, you are supposed to list all the leaves in the order of top down, and left to right. Input Specification: Each input file contains one t 阅读全文
posted @ 2019-04-16 00:28 叶坚持 阅读(428) 评论(0) 推荐(0)