随笔分类 -  洛谷

洛谷 P1832 A+B Problem(再升级)题解
摘要:START: 2021-08-09 15:28:07 题目链接: https://www.luogu.com.cn/problem/P1832 给定一个正整数n,求将其分解成若干个素数之和的方案总数。 输入格式 一行:一个正整数n 输出格式 一行:一个整数表示方案总数 输入输出样例 输入 #1复制 阅读全文
posted @ 2021-08-09 15:45 Dragon昴 阅读(261) 评论(0) 推荐(0)
洛谷 P2105 K皇后 题解
摘要:START: 2021-08-06 16:34:44 题目链接: https://www.luogu.com.cn/problem/P2105 题目详情: 小 Z 最近捡到了一个棋盘,他想在棋盘上摆放 K 个皇后。他想知道在他摆完这 K 个皇后之后,棋盘上还有多少个格子是不会被攻击到的。 注意:一个 阅读全文
posted @ 2021-08-06 17:00 Dragon昴 阅读(341) 评论(3) 推荐(2)
洛谷 P2330 [SCOI2005]繁忙的都市 题解
摘要:START: 2021-08-05 15:30:20 题目链接: https://www.luogu.com.cn/problem/P2330 题目详情: 城市C是一个非常繁忙的大都市,城市中的道路十分的拥挤,于是市长决定对其中的道路进行改造。城市C的道路是这样分布的:城市中有n个交叉路口,有些交叉 阅读全文
posted @ 2021-08-05 16:35 Dragon昴 阅读(182) 评论(0) 推荐(1)
洛谷 P2212 [USACO14MAR]Watering the Fields S 题解
摘要:2021-08-03 20:31:13 链接: https://www.luogu.com.cn/problem/P2212 题目详情: Due to a lack of rain, Farmer John wants to build an irrigation system to send wa 阅读全文
posted @ 2021-08-03 20:44 Dragon昴 阅读(111) 评论(0) 推荐(1)
洛谷 P2872 [USACO07DEC]Building Roads S 题解
摘要:2021-08-03 15:49:06 链接: https://www.luogu.com.cn/problem/P2872 题目描述: Farmer John had just acquired several new farms! He wants to connect the farms wi 阅读全文
posted @ 2021-08-03 16:38 Dragon昴 阅读(205) 评论(0) 推荐(4)
洛谷 P1347 排序 题解
摘要:2021-08-02 15:50:19 链接: https://www.luogu.com.cn/problem/P1347 题目内容: 一个不同的值的升序排序数列指的是一个从左到右元素依次增大的序列,例如,一个有序的数列 A,B,C,D 表示A<B,B<C,C<D。在这道题中,我们将给你一系列形如 阅读全文
posted @ 2021-08-02 16:53 Dragon昴 阅读(612) 评论(2) 推荐(3)
洛谷 P1346 电车 题解
摘要:2021-08-02 09:11:29 链接 https://www.luogu.com.cn/problem/P1346 题目描述 在一个神奇的小镇上有着一个特别的电车网络,它由一些路口和轨道组成,每个路口都连接着若干个轨道,每个轨道都通向一个路口(不排除有的观光轨道转一圈后返回路口的可能)。在每 阅读全文
posted @ 2021-08-02 09:39 Dragon昴 阅读(138) 评论(0) 推荐(2)
P1339 [USACO09OCT]Heat Wave G 题解
摘要:2021-08-01 22:17:41 链接: https://www.luogu.com.cn/problem/P1339 题目描述 有一个 n 个点 m 条边的无向图,请求出从 s 到 t 的最短路长度。 输入格式 第一行四个正整数 n,m,s,t。 接下来 m 行,每行三个正整数 u,v,w, 阅读全文
posted @ 2021-08-01 22:20 Dragon昴 阅读(218) 评论(0) 推荐(2)
洛谷P1038 [NOIP2003 提高组] 神经网络 题解
摘要:2021-08-01 19:56:56 题目: https://www.luogu.com.cn/problem/P1038 描述: 题目背景 人工神经网络(Artificial Neural Network)是一种新兴的具有自我学习能力的计算系统,在模式识别、函数逼近及贷款风险评估等诸多领域有广泛 阅读全文
posted @ 2021-08-01 20:20 Dragon昴 阅读(802) 评论(4) 推荐(2)