随笔分类 -  思维题

摘要:NN is an experienced internet user and that means he spends a lot of time on the social media. Once he found the following image on th... 阅读全文
posted @ 2019-01-14 23:11 black_hole6 阅读(187) 评论(0) 推荐(0)
摘要:Arkady coordinates rounds on some not really famous competitive programming platform. Each round features nn problems of distinct diff... 阅读全文
posted @ 2019-01-14 23:07 black_hole6 阅读(195) 评论(0) 推荐(0)
摘要:This morning, Roman woke up and opened the browser with nn opened tabs numbered from 11 to nn. There are two kinds of tabs: those with... 阅读全文
posted @ 2019-01-14 23:04 black_hole6 阅读(200) 评论(0) 推荐(0)
摘要:A positive integer xx is called a power of two if it can be represented as x=2yx=2y, where yy is a non-negative integer. So, the power... 阅读全文
posted @ 2018-12-28 16:31 black_hole6 阅读(366) 评论(0) 推荐(0)
摘要:The capital of Berland has n multifloor buildings. The architect who built up the capital was very creative, so all the houses were bu... 阅读全文
posted @ 2018-12-27 20:50 black_hole6 阅读(161) 评论(0) 推荐(0)
摘要:链接:https://ac.nowcoder.com/acm/contest/289/E来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K64bit IO Format: %lld题目描述 要将n种物资分配到... 阅读全文
posted @ 2018-12-27 17:59 black_hole6 阅读(255) 评论(0) 推荐(0)
摘要:链接:https://ac.nowcoder.com/acm/contest/318/L来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述在国外,666代... 阅读全文
posted @ 2018-12-23 17:01 black_hole6 阅读(191) 评论(0) 推荐(0)
摘要:链接:https://ac.nowcoder.com/acm/contest/318/M来源:牛客网 在一次青青草原ACM个人赛中,潇洒哥被喜洋洋以30s罚时压制,委屈的当了个第二。潇洒哥蹲在角落说出了他的口头禅,并画起了圈圈。 突然,他想出了一个有趣的题目,... 阅读全文
posted @ 2018-12-23 16:59 black_hole6 阅读(291) 评论(0) 推荐(0)
摘要:链接:https://ac.nowcoder.com/acm/contest/318/A来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述 A... 阅读全文
posted @ 2018-12-23 16:53 black_hole6 阅读(125) 评论(0) 推荐(0)
摘要:链接:https://ac.nowcoder.com/acm/contest/321/D来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K64bit IO Format: %lld题目描述买定离手,买定离手!... 阅读全文
posted @ 2018-12-22 16:30 black_hole6 阅读(348) 评论(0) 推荐(0)
摘要:由于没报名,只能靠别人发的截图来做了我的思路:全排列,判断加号位置,判断/位置,看是否存在这个相等的时间复杂度较高,在10e8左右代码:#include#include#include#include#includeusing namespace std;int ma... 阅读全文
posted @ 2018-12-22 15:55 black_hole6 阅读(186) 评论(0) 推荐(0)
摘要:链接:https://ac.nowcoder.com/acm/contest/321/C来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld题目描述集训队里,有一位... 阅读全文
posted @ 2018-12-22 15:23 black_hole6 阅读(213) 评论(0) 推荐(0)
摘要:Berland, 2016. The exchange rate of currency you all know against the burle has increased so much that to simplify the calculations, i... 阅读全文
posted @ 2018-12-22 00:15 black_hole6 阅读(234) 评论(0) 推荐(0)
摘要:Levko loves tables that consist of n rows and n columns very much. He especially loves beautiful tables. A table is beautiful to Levko... 阅读全文
posted @ 2018-12-21 17:52 black_hole6 阅读(238) 评论(0) 推荐(0)
摘要:"QAQ" is a word to denote an expression of crying. Imagine "Q" as eyes with tears and "A" as a mouth.Now Diamond has given Bort a stri... 阅读全文
posted @ 2018-12-21 17:25 black_hole6 阅读(455) 评论(0) 推荐(0)
摘要:New Year is coming in Line World! In this world, there are n cells numbered by integers from 1 to n, as a 1 × n board. People live in ... 阅读全文
posted @ 2018-12-20 15:56 black_hole6 阅读(128) 评论(0) 推荐(0)
摘要:Yaroslav has an array that consists of n integers. In one second Yaroslav can swap two neighboring array elements. Now Yaroslav is won... 阅读全文
posted @ 2018-12-20 15:14 black_hole6 阅读(274) 评论(0) 推荐(0)
摘要:英国天文学家爱丁顿很喜欢骑车。据说他为了炫耀自己的骑车功力,还定义了一个“爱丁顿数” E ,即满足有 E 天骑车超过 E 英里的最大整数 E。据说爱丁顿自己的 E 等于87。现给定某人 N 天的骑车距离,请你算出对应的爱丁顿数 E(≤N)。输入格式:输入第一行给出一个... 阅读全文
posted @ 2018-12-19 17:01 black_hole6 阅读(161) 评论(0) 推荐(0)