随笔分类 - 思维
摘要:描述 传送门:我是传送门 A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. 输入 Each input fi
阅读全文
摘要:描述 传送门:我是传送门 在日常生活中,通过年、月、日这三个要素可以表示出一个唯一确定的日期。 牛牛习惯用8位数字表示一个日期,其中,前4位代表年份,接下来2位代表月 份,最后2位代表日期。显然:一个日期只有一种表示方法,而两个不同的日期的表 示方法不会相同。 牛牛认为,一个日期是回文的,当且仅当表
阅读全文
摘要:描述 传送门:我是传送门 Ivan is a novice painter. He has nn dyes of different colors. He also knows exactly mmpairs of colors which harmonize with each other. Iv
阅读全文
摘要:描述 传送门:我是传送门 A mysterious country will hold a football world championships—-Abnormal Cup, attracting football teams and fans from all around the world
阅读全文
摘要:描述 传送门:我是传送门 Student Andrey has been skipping physical education lessons for the whole term, and now he must somehow get a passing grade on this subje
阅读全文
摘要:描述 传送门:我是传送门 The Pocket Cube, also known as the Mini Cube or the Ice Cube, is the 2 × 2 × 2 equivalence of a Rubik’s Cube.The cube consists of 8 piece
阅读全文
摘要:描述 传送门:P4375 传送门:UPC6347 留意着农场之外的长期职业生涯的可能性,奶牛Bessie开始在不同的在线编程网站上学习算法。 她到目前为止最喜欢的算法是“冒泡排序”。这是Bessie的对长度为 NN 的数组 AA进行排序的奶牛码实现。 12345678 sorted = falsew
阅读全文
摘要:题目链接:http://codeforces.com/contest/987/problem/B 在运算的时候取对数就好了
阅读全文
摘要:链接:http://codeforces.com/problemset/problem/977/F 题意:首先输入n 然后输入n个数 在这n个数中找出最长的连续的上升的子序列 输出有两行 第一行为最长上升子序列的长度 第二行为序列中各个元素的下标 因为是上升子序列,并且是连续的 所以可以使用map存
阅读全文
摘要:链接:https://www.nowcoder.com/acm/contest/84/B 看到这道题目完全没有任何思路,从来没见到过这种题 看着别人一个个的AC 自己心里还挺不是滋味的~ 看过别人博客的详解才明白 代码: 虽然现在是看明白了 但是还是讲不出来自己实在是太菜了
阅读全文

浙公网安备 33010602011771号