
========图论========
Lngxling
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CodeForces - 624C Graph and String
C. Graph and String time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day student Vasya was sitting on a原创 2017-12-09 16:24:18 · 307 阅读 · 0 评论 -
HDU - 1878 欧拉回路
欧拉回路 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 15862 Accepted Submission(s): 6072 Problem Description 欧拉回路是指不令笔离开纸面,可画过图中每原创 2017-11-26 18:44:59 · 256 阅读 · 0 评论 -
数论模板
1. 辗转相除法(欧几里得除法) int gcd(int a,int b) { return b==0?a:gcd(b,a%b); } 或者c++直接用函数__gcd() 2.扩展欧几里得 int exgcd(int a,int b,int &x,int &y) { if(b==0) { x=1; y=0; return a; } int k=ex...原创 2018-04-15 21:51:48 · 370 阅读 · 0 评论