上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 66 下一页
摘要: [NOIP 2013 提高组] 货车运输 题目背景 NOIP2013 提高组 D1T3 题目描述 A 国有 $n$ 座城市,编号从 $1$ 到 $n$,城市之间有 $m$ 条双向道路。每一条道路对车辆都有重量限制,简称限重。 现在有 $q$ 辆货车在运输货物, 司机们想知道每辆车在不超过车辆限重的情 阅读全文
posted @ 2025-05-22 22:56 onlyblues 阅读(66) 评论(0) 推荐(0)
摘要: C. Envy For a connected undirected weighted graph $G$, MST (minimum spanning tree) is a subgraph of $G$ that contains all of $G$'s vertices, is a tree 阅读全文
posted @ 2025-05-15 17:15 onlyblues 阅读(40) 评论(0) 推荐(0)
摘要: 奇素数回路 题目描述 给定偶数 $n$,构造一个由 $1 \sim n$ 这 $n$ 个不同的整数构成环形数组 $a$,使得相邻两项的差均为奇素数。 奇素数是指除了 $2$ 以外的素数,最小的四个奇素数是 $3,5,7,11$。 输入描述: 每个测试文件均包含多组测试数据。第一行输入一个整数 $T\ 阅读全文
posted @ 2025-05-11 18:01 onlyblues 阅读(58) 评论(0) 推荐(0)
摘要: D. Apple Tree Traversing There is an apple tree with $n$ nodes, initially with one apple at each node. You have a paper with you, initially with nothi 阅读全文
posted @ 2025-05-09 16:41 onlyblues 阅读(64) 评论(0) 推荐(0)
摘要: G - Specified Range Sums Problem Statement You are given an integer $N$ and length-$M$ integer sequences $L=(L_1,L_2,\dots,L_M)$, $R=(R_1,R_2,\dots,R_ 阅读全文
posted @ 2025-05-05 12:19 onlyblues 阅读(104) 评论(0) 推荐(0)
摘要: F - Path to Integer Problem Statement There is an $N\times N$ grid. Let cell $(i,j)$ denote the cell in the $i$-th row from the top and $j$-th column 阅读全文
posted @ 2025-05-03 16:46 onlyblues 阅读(46) 评论(0) 推荐(0)
摘要: Path Existence Queries in a Graph II You are given an integer n representing the number of nodes in a graph, labeled from 0 to n - 1. You are also giv 阅读全文
posted @ 2025-04-30 13:30 onlyblues 阅读(82) 评论(0) 推荐(0)
摘要: Find X Value of Array II You are given an array of positive integers nums and a positive integer k. You are also given a 2D array queries, where queri 阅读全文
posted @ 2025-04-20 18:05 onlyblues 阅读(33) 评论(0) 推荐(0)
摘要: [IOI 2008] Island 题目描述 你准备浏览一个公园,该公园由 $N$ 个岛屿组成,当地管理部门从每个岛屿 $i$ 出发向另外一个岛屿建了一座长度为 $L_i$ 的桥,不过桥是可以双向行走的。同时,每对岛屿之间都有一艘专用的往来两岛之间的渡船。相对于乘船而言,你更喜欢步行。你希望经过的桥 阅读全文
posted @ 2025-04-16 21:45 onlyblues 阅读(60) 评论(0) 推荐(0)
摘要: Maximum Product of Subsequences With an Alternating Sum Equal to K You are given an integer array nums and two integers, k and limit. Your task is to 阅读全文
posted @ 2025-04-08 09:53 onlyblues 阅读(172) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 66 下一页
Web Analytics