上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 集合和容器都是Java中的容器。 区别 数组特点:大小固定,只能存储相同数据类型的数据 集合特点:大小可动态扩展,可以存储各种类型的数据 转换 数组转换为集合: Arrays.asList(数组) 示例: 集合转换为数组: 集合.toArray(); 示例: 阅读全文
posted @ 2018-05-03 10:05 zhang_upstar 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 题意:给一个二分图,存在重边,求使各点度数至少为k(0<=k<=min(d[i]))的最小边集合。 分析:首先建立一个源点s向二分图左边连边,建立一个汇点e,所有二分图右边的点向e点连边。要使每个点的度数大于等于k,可使流过每个点的流量小于等于d[i]-k。(d[i]为每个点的度数),就可以在建立源 阅读全文
posted @ 2018-05-02 21:03 zhang_upstar 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://codeforces.com/contest/976/problem/E 题目: Recently Max has got himself into popular CCG “BrainStone”. As “BrainStone” is a pretty intellec 阅读全文
posted @ 2018-05-02 21:01 zhang_upstar 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Degree Set time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Degree Set time limit per tes 阅读全文
posted @ 2018-05-02 20:57 zhang_upstar 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Iroha is very particular about numbers. There are K digits that she dislikes: D1,D2,…,DK. She is shopping, and now paying at the cas 阅读全文
posted @ 2018-05-02 20:53 zhang_upstar 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 文字列大好きいろはちゃんイージー / Iroha Loves Strings (ABC Edition) AtCoder - 1978 Problem Statement Iroha has a sequence of N strings S1,S2,…,SN. The length of each 阅读全文
posted @ 2018-05-02 20:52 zhang_upstar 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition) AtCoder - 1977 Problem Statement Iroha loves Haiku. Haiku is a short form of Japanese poetry. A Haiku con 阅读全文
posted @ 2018-05-02 20:51 zhang_upstar 阅读(473) 评论(0) 推荐(0) 编辑
摘要: Problem Statement We have a large square grid with H rows and W columns. Iroha is now standing in the top-left cell. She will repeat going right or do 阅读全文
posted @ 2018-05-02 20:50 zhang_upstar 阅读(566) 评论(0) 推荐(0) 编辑
摘要: Problem Description Julyed is preparing for her CET-6. She has N words to remember, but there is only M days left. If she can’t remember all these wor 阅读全文
posted @ 2018-05-02 20:45 zhang_upstar 阅读(462) 评论(0) 推荐(0) 编辑
摘要: Little Q loves playing with different kinds of graphs very much. One day he thought about an interesting category of graphs called ``Cool Graph'', whi 阅读全文
posted @ 2018-05-02 20:38 zhang_upstar 阅读(336) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页