网络竞赛
文章平均质量分 75
Sureina
空太はバカ
展开
-
Leetcode 787. K 站中转内最便宜的航班
有 n 个城市通过一些航班连接。给你一个数组flights ,其中flights[i] = [fromi, toi, pricei] ,表示该航班都从城市 fromi 开始,以价格 pricei 抵达 toi。现在给定所有的城市和航班,以及出发城市 src 和目的地 dst,你的任务是找到出一条最多经过 k站中转的路线,使得从 src 到 dst 的 价格最便宜 ,并返回该价格。 如果不存在这样的路线,则输出 -1。示例 1:输入:n = 3, edges = [[0,1,100]...原创 2021-08-26 22:32:20 · 266 阅读 · 0 评论 -
HDU 5898 - odd-even number
Problem DescriptionFor a number,if the length of continuous odd digits is even and the length of continuous even digits is odd,we call it odd-even number.Now we want to know the amount of odd-even n原创 2016-10-04 18:04:54 · 361 阅读 · 0 评论 -
HDU 5901 - Count Primes
Problem DescriptionEasy question! Calculate how many primes between [1...n]!InputEach line contain one integer n(1 OutputFor each case, output the number of primes in interval [1...n]原创 2016-10-04 10:26:37 · 440 阅读 · 0 评论 -
HDU 5884 - Sort
Problem DescriptionRecently, Bob has just learnt a naive sorting algorithm: merge sort. Now, Bob receives a task from Alice.Alice will give Bob N sorted sequences, and the i-th sequence includes a原创 2016-10-03 14:26:34 · 332 阅读 · 0 评论 -
HDU 5878 - I Count Two Three
Problem DescriptionI will show you the most popular board game in the Shanghai Ingress Resistance Team.It all started several months ago.We found out the home address of the enlightened agent Ic原创 2016-09-24 15:25:46 · 348 阅读 · 0 评论 -
HDU 5883 - The Best Path
Problem DescriptionAlice is planning her travel route in a beautiful valley. In this valley, there are N lakes, and M rivers linking these lakes. Alice wants to start her trip from one lake, and enj原创 2016-09-23 19:33:53 · 347 阅读 · 0 评论 -
HDU 5877 - Weak Pair
Problem DescriptionYou are given a rooted tree of N nodes, labeled from 1 to N. To the ith node a non-negative value ai is assigned.An ordered pair of nodes (u,v) is said to be weak if (1) u is a原创 2016-09-22 20:14:12 · 393 阅读 · 0 评论 -
HDU 5875 - Function
Problem DescriptionThe shorter, the simpler. With this problem, you should be convinced of this truth. You are given an array A of N postive integers, and M queries in the form (l,r). A funct原创 2016-09-19 19:03:33 · 545 阅读 · 0 评论 -
HDU 5872 - Seats
Problem DescriptionThe yearly sports meeting is approaching in Hail university and M departments, conveniently numbered from 1 to M, are going to take part in. Each department has no more than h stu原创 2016-09-18 19:05:05 · 644 阅读 · 0 评论 -
HDU 5879 - Cure【2016 ACM 区域赛青岛赛区网络赛】
Problem DescriptionGiven an integer n, we only want to know the sum of 1/k2 where k from 1 to n.InputThere are multiple cases.For each test case, there is a single line, containing a singl原创 2016-09-18 18:57:17 · 806 阅读 · 0 评论 -
HDU 5874 - Friends ans Enemis
Problem DescriptionOn an isolated island, lived some dwarves. A king (not a dwarf) ruled the island and the seas nearby, there are abundant cobblestones of varying colors on the island. Every two dw原创 2016-09-13 15:17:31 · 426 阅读 · 0 评论 -
HDU 5876 - Sparse Graph
唉这题真是……原创 2016-09-13 14:30:31 · 334 阅读 · 0 评论 -
HDU 5873 - Football Match【2016大连区域赛网络赛1006】
Problem DescriptionA mysterious country will hold a football world championships---Abnormal Cup, attracting football teams and fans from all around the world. This country is so mysterious that none原创 2016-09-12 19:58:12 · 616 阅读 · 0 评论 -
HIHO Coder - 1299 打折机票
描述 因为思念新宿的"小姐姐"们,岛娘计划6月份再去一趟东京,不过这次看来她需要自掏腰包。经过了几天的夜战,岛娘终于在体力耗尽之前,用Python抓下了所有6月份,上海至东京的全部共n 张机票。现在请你帮助债台高筑的岛娘筛选出符合时间区间要求的,最贵的机票。输入输入数据的第一行包含两个整数 n, m(1 ≤ n, m ≤ 105),分别表示机票的总数,和询问的总数。接下来的原创 2016-05-07 11:29:22 · 683 阅读 · 0 评论 -
HDU - Segment
Problem Description \ \ \ \ Silen August does not like to talk with others.She like to find some interesting problems. \ \ \ \ Today she finds an interesting problem.She finds原创 2016-04-17 12:59:53 · 364 阅读 · 0 评论 -
ZYB's Biology解题报告
问题描述ZYB(ZJ−267)ZYB(ZJ-267)ZYB(ZJ−267)在NOIPNOIPNOIP拿到600600600分之后开始虐生物题,他现在扔给你一道简单的生物题:给出一个DNADNADNA序列和一个RNARNARNA序列,问它们是否配对。DNADNADNA序列是仅由A,C,G,TA,C,G,TA,C,G,T组成的字符串,RNARNARNA序列是仅由A,C,G,UA,C,G,UA,C原创 2015-12-05 22:31:22 · 692 阅读 · 0 评论 -
ZYB's Game解题报告
问题描述ZYBZYBZYB在远足中,和同学们玩了一个“数字炸弹”游戏:由主持人心里想一个在[1,N][1,N][1,N]中的数字XXX,然后玩家们轮流猜一个数字,如果一个玩家恰好猜中XXX则算负,否则主持人将告诉全场的人当前的数和XXX比是偏大还是偏小,然后猜测的范围就会相应减小,一开始的范围是[1,N][1,N][1,N].每个玩家只能在合法的范围中猜测.现在假设只有两个人在玩这原创 2015-12-05 22:39:18 · 424 阅读 · 0 评论