![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
ming_514
这个作者很懒,什么都没留下…
展开
-
cf419 A Karen and Morning
这个题,当时想的就是各种特判,直接if else就能搞定,做出来以后想了想循环也可以搞定~~~代码量还小,先贴一发循环的,再贴一发if的#include char s[100];int main() { int h, m; scanf("%d:%d", &h, &m); int ans = 0; while (1) { sprintf(s, "%02d%02d"原创 2017-06-18 19:16:15 · 296 阅读 · 0 评论 -
cf 402c Searching for Graph
大力出奇迹,直接一遍循环过,直接猜的题意,题目的理解还不够Let's call an undirected graph of n vertices p-interesting, if the following conditions fulfill:the graph contains exactly 2n + p edges;the graph doesn't contain sel原创 2017-06-30 10:29:23 · 222 阅读 · 0 评论 -
cf-618c
记住记住,看到1e9,要用longlong!!!这个题一开始用园的方法,去判断,后来发现只需要随意的确定出两个点来,然后去找外的一个点,首先先排序,排序先看x后看y,然后去判断三点是否共线,高中知识啊,自己想了这么久~~哎~~Cat Noku has obtained a map of the night sky. On this map, he found a constellation原创 2017-07-10 23:32:55 · 227 阅读 · 0 评论 -
ural- 2065 Different Sums
这个题生成一个序列,使这个序列满足,题目,昨天比赛的时候,直接写了一个正负的,我觉得应该可以然后,然后过不了样例,那个时候大脑已经有一点不反应了,然后我就看到没有输出任意一组样例 If there are multiple possible answers, you may print any of them.就是这句话,然后雪崩,比赛完了交了一发,对了,自己的英语能力是真的差劲,昨天都错了两个原创 2017-07-01 08:22:04 · 242 阅读 · 0 评论 -
cf 402bPolo the Penguin and Matrix
这个矩阵,看题啊,题目中说如果矩阵已经是相等的了,就是不需要移动,还有就是一开始以为是一个等差数列才可以,后来一想不需要,鬼知道样例是啥,去了一开始的一个等差数列的判断就对了Little penguin Polo has an n × m matrix, consisting of integers. Let's index the matrix rows from 1 to n from t原创 2017-07-02 17:48:54 · 202 阅读 · 0 评论 -
hdu-4451 思维题
这个题一开始想的就是只有有一套衣服就加2然后有重复的就需要减一,就用这个方法,写了三遍,wa了三遍,最后发现那个数组没有遍历最后一个元素所以那个题一直错,后来队友用了另外的方法搞定了,自己比赛结束前也没有看出来这个错误,下面贴上两个代码,#include #include #include #include #include #include #include #includ原创 2017-07-16 08:19:34 · 229 阅读 · 0 评论 -
A - Abbreviation Gym - 101190A
一个大模拟,这题,就是一开始的时候找到第一个单词可以作为开始,然后往下去找,如果没有了,就输出一下那个括号,还有个就是逗号也要隔开,最后的时候也要再检查一遍这个题其实,有很多简单的方法,但是自己写搓了~~,#include #include #include #include #include #include #include #include #include #in原创 2017-09-01 09:48:07 · 284 阅读 · 0 评论 -
Worried School HDU - 6008
这个题就是前五个是中国赛区,最后一个是外国赛区,这里给你一个担心的的国家,中国赛区的取数是按照先取前五个赛区的第一再去第二第三这样,不能有重复的,我们要帮worried school看看它能不能进WF,如果对于任意的(x,y)都能使得worried school进WF,就输出“ADVANCED!”。而如果对于一些(x,y)能使得worried school进WF,另一些(x,y)不能,就输出最小的原创 2017-09-01 10:11:03 · 263 阅读 · 0 评论