Sweety

Practice makes perfect

导航

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 62 下一页

2017年4月26日

摘要: You Are the One HDU - 4283 The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still... 阅读全文

posted @ 2017-04-26 12:12 蓝空 阅读(157) 评论(0) 推荐(0) 编辑

摘要: F - Food Delivery ZOJ - 3469 题意: 有一家快餐店送外卖,现在同时有n个家庭打进电话订购,送货员得以V-1的速度一家一家的运送,但是每一个家庭都有一个不开心的值,每分钟都会增加一倍,值达到一定程度... 阅读全文

posted @ 2017-04-26 11:01 蓝空 阅读(209) 评论(0) 推荐(0) 编辑

2017年4月25日

摘要: 二分查找 原博: here 1 //二分查找 2 int binarySearch(int arr[], int len, int key) 3 { 4 int left = 0; 5 int right = len - 1; 6 int mid; 7 8 ... 阅读全文

posted @ 2017-04-25 22:08 蓝空 阅读(309) 评论(0) 推荐(0) 编辑

摘要: Binary Tree Restoring Time Limit: 1 Second Memory Limit: 65536 KB Special Judge Given two depth-first-search (DFS) sequences of a bina... 阅读全文

posted @ 2017-04-25 21:47 蓝空 阅读(301) 评论(0) 推荐(0) 编辑

摘要: Yet Another Game of Stones Time Limit: 1 Second Memory Limit: 65536 KB Alice and Bob are playing yet another game of stones. The rules of thi... 阅读全文

posted @ 2017-04-25 16:55 蓝空 阅读(163) 评论(0) 推荐(0) 编辑

摘要: 题意 : 构造尽可能少的一种结构,父节点的值小于等于子节点,而且子节点在序列中出现在父节点后面。而且每个父节点至多有两个子节点。 开始理解错题意了,卡了好半天啊,这道题不是简单的一个节点可以有两个子节点那么简单,而是递归的,也就是说子节点还可以递归存在子节点,也就是可以是树,坑了好半天啊。。。... 阅读全文

posted @ 2017-04-25 16:48 蓝空 阅读(135) 评论(0) 推荐(0) 编辑

2017年4月24日

摘要: Color Circle There are colorful flowers in the parterre in front of the door of colle... 阅读全文

posted @ 2017-04-24 22:19 蓝空 阅读(125) 评论(0) 推荐(0) 编辑

摘要: 题意:给你一棵二叉树,点有点权,每次往左或者往右走,求最长走的路,并且点权和小于k; 思路:官方题解,尺取,我的写法,树上二分, 对于一条链,枚举每个点为终点,vector存该点到根节点的前缀和,二分一下即可; 详见代码; 借鉴下网友代码! #pra... 阅读全文

posted @ 2017-04-24 22:00 蓝空 阅读(139) 评论(0) 推荐(0) 编辑

摘要: Problem D: GCD Time Limit: 1 Sec Memory Limit: 1280 MB Submit: 194 Solved: 27 [Submit][Status][Web Board] Description Input The fir... 阅读全文

posted @ 2017-04-24 21:47 蓝空 阅读(294) 评论(0) 推荐(0) 编辑

摘要: 1201: Friends Time Limit: 1 Sec Memory Limit: 1280 MB Submit: 98 Solved: 16 [Submit][Status][Web Board] Description In a country, the re... 阅读全文

posted @ 2017-04-24 18:42 蓝空 阅读(142) 评论(0) 推荐(0) 编辑

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 62 下一页