上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: 处女座的签到题 链接:https://ac.nowcoder.com/acm/contest/327/A 题目描述 平面上有n个点,问:平面上所有三角形面积第k大的三角形的面积是多少? 输入描述: 第一行T,表示样例的个数。对于每一组样例,第一行两个整数n和k,接下来n行,每行两个整数x,y表示点的 阅读全文
posted @ 2019-02-12 19:16 *starry* 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 小a的子序列 题目链接:https://ac.nowcoder.com/acm/contest/317/F 题目描述 小a有一个长度为nn的序列,但是他忘了这个序列的样子,他只记得序列中的数大小在[1,V][1,V]内 你可以任意选择一些位置,并给它们赋值来组成一段子序列,需要满足序列中的数严格递增 阅读全文
posted @ 2019-02-12 17:52 *starry* 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Rinne Loves Edges 题目描述 Rinne 最近了解了如何快速维护可支持插入边删除边的图,并且高效的回答一下奇妙的询问。 她现在拿到了一个 n 个节点 m 条边的无向连通图,每条边有一个边权 wiwi 现在她想玩一个游戏:选取一个 “重要点” S,然后选择性删除一些边,使得原图中所有除 阅读全文
posted @ 2019-02-11 23:13 *starry* 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Bag of mice CodeForces - 148D The dragon and the princess are arguing about what to do on the New Year's Eve. The dragon suggests flying to the mounta 阅读全文
posted @ 2019-02-11 13:36 *starry* 阅读(292) 评论(0) 推荐(0) 编辑
摘要: A Dangerous Maze LightOJ - 1027 You are in a maze; seeing n doors in front of you in beginning. You can choose any door you like. The probability for 阅读全文
posted @ 2019-02-11 13:30 *starry* 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Dice (III) LightOJ - 1248 Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at 阅读全文
posted @ 2019-02-11 13:26 *starry* 阅读(432) 评论(0) 推荐(0) 编辑
摘要: Aeroplane chess HDU - 4405 Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz starts at grid 0. For each s 阅读全文
posted @ 2019-02-11 12:39 *starry* 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Discovering Gold LightOJ - 1030 You are in a cave, a long cave! The cave can be represented by a 1 x N grid. Each cell of the cave can contain any amo 阅读全文
posted @ 2019-02-11 12:37 *starry* 阅读(312) 评论(0) 推荐(0) 编辑
摘要: A+B in Hogwarts 在java.lang包中有String.split()方法,返回是一个数组 我在应用中用到一些,给大家总结一下,仅供大家参考: 1、如果用“.”作为分隔的话,必须是如下写法,String.split("\\."),这样才能正确的分隔开,不能用String.split( 阅读全文
posted @ 2019-02-09 17:06 *starry* 阅读(202) 评论(0) 推荐(0) 编辑
摘要: All Roads Lead to Rome 本题需要记录一共有几条最短路径,并输出最短路中开心值最大的路径或者开心值相等的情况下输出平均开心值最大的路径。 阅读全文
posted @ 2019-02-09 16:14 *starry* 阅读(300) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页