摘要: 有幸旁观了acm集训队的换届仪式,忽然想写点东西。我自己学算法也差不多一年了,这一年,我不清楚我进步了多少,但是至少我感受到了之前从未有过的快乐。我最近不断想问自己,自己是否真的喜欢算法?这个问题我不敢轻易回答,因为我不知道一句简单的喜欢会承载多少东西。这一年从一个连基本语法都搞不懂的小白,到现在参 阅读全文
posted @ 2019-06-21 20:45 black_hole6 阅读(254) 评论(3) 推荐(0) 编辑
摘要: 记录一下自己一点大学获奖经历 2018.10 山东省高校机器人大赛 二等奖 2018.12 青岛大学电子设计竞赛 一等奖 2018.12 青岛大学第一届程序设计大赛 冠军 2019.3 第十届蓝桥杯山东省赛 一等奖 2019.4 计算机科学与技术学院图灵杯编程大赛 冠军 2019.5 山东省acm程 阅读全文
posted @ 2019-05-01 11:14 black_hole6 阅读(468) 评论(1) 推荐(1) 编辑
摘要: 本人弱校小白一枚,希望可以在博客园和大佬们分享心得,和大佬有机会多多交流,交流QQ656484427 阅读全文
posted @ 2018-11-08 22:07 black_hole6 阅读(220) 评论(0) 推荐(0) 编辑
摘要: You are given nn integer numbers a1,a2,…,ana1,a2,…,an. Consider graph on nn nodes, in which nodes ii, jj (i≠ji≠j) are connected if and only if, aiaiAN 阅读全文
posted @ 2019-08-19 20:54 black_hole6 阅读(378) 评论(0) 推荐(0) 编辑
摘要: You are given a line of nn colored squares in a row, numbered from 11 to nn from left to right. The ii-th square initially has the color cici. Let's s 阅读全文
posted @ 2019-08-16 09:40 black_hole6 阅读(323) 评论(0) 推荐(0) 编辑
摘要: The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. Given any two nodes in a bin 阅读全文
posted @ 2019-08-16 09:28 black_hole6 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 一个字 就是骚~感觉以后写博客都省了 阅读全文
posted @ 2019-08-12 22:39 black_hole6 阅读(334) 评论(0) 推荐(0) 编辑
摘要: Ural大学有N名职员,编号为1~N。 他们的关系就像一棵以校长为根的树,父节点就是子节点的直接上司。 每个职员有一个快乐指数,用整数 HiHi 给出,其中 1≤i≤N1≤i≤N。 现在要召开一场周年庆宴会,不过,没有职员愿意和直接上司一起参会。 在满足这个条件的前提下,主办方希望邀请一部分职员参会 阅读全文
posted @ 2019-08-12 11:00 black_hole6 阅读(333) 评论(0) 推荐(0) 编辑
摘要: Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home too quickly 阅读全文
posted @ 2019-08-11 23:40 black_hole6 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 在完成了分配任务之后,西部314来到了楼兰古城的西部。 相传很久以前这片土地上(比楼兰古城还早)生活着两个部落,一个部落崇拜尖刀(‘V’),一个部落崇拜铁锹(‘∧’),他们分别用V和∧的形状来代表各自部落的图腾。 西部314在楼兰古城的下面发现了一幅巨大的壁画,壁画上被标记出了N个点,经测量发现这N 阅读全文
posted @ 2019-08-10 23:18 black_hole6 阅读(352) 评论(0) 推荐(0) 编辑
摘要: Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt 阅读全文
posted @ 2019-08-09 11:42 black_hole6 阅读(348) 评论(0) 推荐(0) 编辑
摘要: Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhi 阅读全文
posted @ 2019-08-09 10:58 black_hole6 阅读(371) 评论(0) 推荐(0) 编辑
摘要: P is a permutation of the integers from 1 to N(index starting from 1). Here is the code of Bubble Sort in C++. for(int i=1;i<=N;++i) for(int j=N,t;j>i 阅读全文
posted @ 2019-08-08 21:18 black_hole6 阅读(170) 评论(0) 推荐(0) 编辑