摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5019给出X 和Y,求出第K 大的 X 和Y 的公约数。暴力求出所有公约数#include #include #include #include #include #include #include #includ...
阅读全文
随笔分类 - 水题
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5024找到一个最长的L型,L可以是斜着的简单的模拟#include #include #include #include #include #include #include #include #include u...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5038模拟水题求出现次数最多的grade。如果有多个grade出现的次数一样多,且还有其他的grade,则把这些出现次数最多的grade按升序输出;否则,输出“Bad Mushroom”。#include #inc...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5055n个digit能组合出的最大无前导0奇数无聊的模拟#include #include #include #include #include #include #include #include#include...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5054确定是否矩形中点这都能hack成功,无语#include #include #include #include #include #include #include #include#include #inc...
阅读全文