
数论
文章平均质量分 69
Achanss
My life is good, and u just make it better!
展开
-
Squarefree number HDU - 3826(数论:唯一分解定理 )
Squarefree number HDU - 3826 In mathematics, a squarefree number is one which is divisible by no perfect squares, except 1. For example, 10 is square-free but 18 is not, as it is divisible by 9 ...原创 2018-09-23 15:04:32 · 664 阅读 · 0 评论 -
2015ACM/ICPC亚洲区沈阳站-——Pagodas(简单博弈)
nn pagodas were standing erect in Hong Jue Si between the Niushou Mountain and the Yuntai Mountain, labelled from 11 to nn. However, only two of them (labelled aa and bb, where 1≤a≠b≤n1≤a≠b≤n) withsto...原创 2018-10-02 09:45:41 · 423 阅读 · 0 评论 -
Wannafly summer camp Day2 ——Utawarerumono(数论扩展欧几里得)
9511: Utawarerumono时间限制: 1 Sec 内存限制: 128 MB提交: 389 解决: 66[提交] [状态] [讨论版] [命题人:admin]题目描述算术是为数不多的会让久远感到棘手的事情。通常她会找哈克帮忙,但是哈克已经被她派去买东西了。于是她向你寻求帮助。给出一个关于变量x,y的不定方程ax+by=c,显然这个方程可能有多个整数解。久远想知道...原创 2018-10-10 21:34:53 · 327 阅读 · 0 评论 -
数学题型取模mod需注意的问题 ( Codeforces Round #553 (Div. 2) C - Problem for Nazar)
应用于对负数ans求模ans =(ans + mod) %mod;可以在输出答案时添上+mod防止负数的产生,并且对答案无影响(数论上可证明)点我进入测试题/** @Author: Achan* @Date: 2019-04-19 23:01:30* @Last Modified by: Achan* @Last Modified time: 2019-04-20 00:0...原创 2019-04-20 00:14:58 · 360 阅读 · 0 评论