摘要: 这次的前三题挺简单的,可是我做的不快也不对。 A. Bank Robbery time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A 阅读全文
posted @ 2017-05-13 20:17 暴力都不会的蒟蒻 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 欧几里得算法就是我们常说的辗转相除法,辗转相除法可以用来求最大公约数,知道最大公约数还可以求最小公倍数。gcd在好像也有库函数__gcd int Gcd(int a, int b) { while(b != 0) { int r = b; b = a % b; a = r; } return a; 阅读全文
posted @ 2017-05-13 13:11 暴力都不会的蒟蒻 阅读(406) 评论(0) 推荐(0) 编辑