《挑战程序设计竞赛1》题解合集

英文题面的题解

复制代码
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);

#ifdef local_debug
freopen("words.in", "r", stdin);
freopen("out.txt", "w", stdout);
#endif

复制代码

https://vjudge.net/

https://vjudge.net.cn/

 

 《挑战程序设计竞赛1》

2.1 poj 1979 Red and Black 

挑战程序设计竞赛 2.1章习题 AOJ 0118 Property Distribution dfs bfs

挑战程序设计竞赛 2.1章习题 AOJ  0033 Ball

挑战程序设计竞赛 2.1章习题 POJ 3009 Curling 2.0

挑战程序设计竞赛 2.1章习题 Aizu - 0558 Cheese BFS

2.1 Meteor Shower

挑战程序设计竞赛 2.1章习题 AOJ 0121 Seven Puzzle bfs

挑战程序设计竞赛 2.1章习题 poj 2718 Smallest Difference dfs

挑战程序设计竞赛 2.1章习题 POJ 3187 Backward Digit Sums dfs

挑战程序设计竞赛 2.1章习题 poj 3050 Hopscotch dfs

挑战程序设计竞赛 2.1章习题 Aizu - 0525 Osenbei BFS 

挑战程序设计竞赛 2.1章习题 POJ 2386 Lake Counting

 

 

挑战程序设计竞赛 2.2章习题 poj 2376 Cleaning Shifts 

挑战程序设计竞赛 2.2 poj 1328 Radarinstallation

挑战程序设计竞赛 2.2章习题 poj 3190 Stall Reservations(贪心+优先队列)

挑战程序设计竞赛 2.2 poj 2393 Yogurt factory

挑战程序设计竞赛 2.2章习题 poj 1017 Packets 贪心模拟 

挑战程序设计竞赛 2.2章习题 POJ - 3617 Best Cow Line 贪心

挑战程序设计竞赛 2.2章习题 poj 1862 Stripies 贪心

挑战程序设计竞赛 2.2章习题 poj 3262 Protecting the Flowers 比率贪心

挑战程序设计竞赛 2.2 poj 3040 Allowance 贪心

 

 

挑战程序设计竞赛 2.3章习题 poj 3176 Cow Bowling dp

挑战程序设计竞赛 2.3章习题 poj 2229 Sumsets dp

挑战程序设计竞赛 2.3章习题 poj 3046 Ant Counting

 

 

挑战程序设计竞赛 2.6章习题 poj 3421 X-factor Chains

挑战程序设计竞赛 2.6章习题 UVA - 10006 Carmichael Numbers

挑战程序设计竞赛 2.6章习题 POJ 1930 Dead Fraction

 

 

题单目录

复制代码
第2章 初出茅庐——初级篇

2.1 最基础的“穷竭搜索”
POJ - 2386 Lake Counting                        https ://www.cnblogs.com/itdef/p/15611661.html https://www.cnblogs.com/itdef/p/17739594.html 深度优先搜索:
1 POJ - 1979 Red and Black2 Aizu - 0118 Property Distribution3                  https://www.cnblogs.com/itdef/p/14268880.html Aizu - 0033 Ball4                            https://www.cnblogs.com/itdef/p/14278809.html POJ - 3009 Curling 2.0                          https://www.cnblogs.com/itdef/p/17739344.html 广度优先搜索: 1 Aizu - 0558 Cheese2                        https://www.cnblogs.com/itdef/p/14287620.html POJ - 3669 Meteor Shower3 Aizu - 0121 Seven Puzzle                        https://www.cnblogs.com/itdef/p/14288427.html 穷竭搜索: 1 POJ - 2718 Smallest Difference                  https://www.cnblogs.com/itdef/p/14548745.html 2 POJ - 3187 Backward Digit Sums3                https://www.cnblogs.com/itdef/p/14327040.html POJ - 3050 Hopscotch4                          https://www.cnblogs.com/itdef/p/14288654.html Aizu - 0525 Osenbei                          https://www.cnblogs.com/itdef/p/14561323.html

*2.2:(贪心)
1 POJ - 3617 Best Cow Line                      https://www.cnblogs.com/itdef/p/18199140    https://www.cnblogs.com/itdef/p/17019727.html
2 POJ - 3069 Saruman's Army                      https://www.cnblogs.com/itdef/p/17334106.html
3 POJ - 3253 Fence Repair                       https://www.cnblogs.com/itdef/p/15614674.html  

区间法:
1    POJ - 2376 Cleaning Shifts2                 https://www.cnblogs.com/itdef/p/14574439.html 
2 POJ
- 1328 Radar Installation                https://www.cnblogs.com/itdef/p/17740886.html 3 POJ - 3190 Stall Reservations                https://www.cnblogs.com/itdef/p/15100554.html 其他: 1 POJ - 2393 Yogurt factory2                  https://www.cnblogs.com/itdef/p/17740963.html 2 POJ - 1017 Packets                       https://www.cnblogs.com/itdef/p/14578608.html 3 POJ - 3040 Allowance4                      https://www.cnblogs.com/itdef/p/17775025.html     POJ - 1862 Stripies5                          https://www.cnblogs.com/itdef/p/14601172.html  https://www.cnblogs.com/itdef/p/17334263.html POJ - 3262 Protecting the Flowers                  https://www.cnblogs.com/itdef/p/14587123.html 2.3 记录结果再利用的“动态规划” 基础的动态规划算法: 1 POJ - 3176 Cow Bowling2                    https://www.cnblogs.com/itdef/p/14601755.html POJ - 2229 Sumsets3                        https://www.cnblogs.com/itdef/p/16656221.html   https://www.cnblogs.com/itdef/p/14602376.html POJ - 2385 Apple Catching4                    https://www.cnblogs.com/itdef/p/16322039.html POJ - 3616 Milking Time5                      https://www.cnblogs.com/itdef/p/16323484.html POJ - 3280 Cheapest Palindrome                  https://www.cnblogs.com/itdef/p/17062611.html 优化递推关系式: 1 POJ - 1742Coins2 POJ - 3046 Ant Counting3                      https://www.cnblogs.com/itdef/p/18199805 POJ - 3181 Dollar Dayz 需要稍加思考的题目: 1 POJ - 1065 Wooden Sticks 2 POJ - 1631 Bridging signals 3 POJ - 3666 Making the Grade4 POJ - 2392 Space Elevator5 POJ - 2184 Cow Exhibition 2.4 加工并存储数据的数据结构

1 POJ - 2431 Expedition                        https://www.cnblogs.com/itdef/p/16586630.html
2 POJ - 3253 Fence Repair                       https://www.cnblogs.com/itdef/p/15614674.html
3 POJ - 1182 食物链                           https://www.cnblogs.com/itdef/p/17470904.html

优先队列:
1    POJ - 3614 Sunscreen
2    POJ - 2010 Moo University - Financial Aid          https://www.cnblogs.com/itdef/p/18610748


并查集:
1    POJ - 2236 Wireless Network
2    POJ - 1703 Find them, Catch them
3    Aizu - 2170 Marked Ancestor


2.5 它们其实都是“图”

1 POJ - 3255 Roadblocks
2 POJ - 3723 Conscription                        https://www.cnblogs.com/itdef/p/17478143.html
3 POJ - 3169 Layout

最短路:
1    Aizu - 0189 Convenient Location
2    POJ - 2139 Six Degrees of Cowvin Bacon
3    POJ - 3259 Wormholes
4    POJ - 3268 Silver Cow Party
5    Aizu - 2249 Road Construction
6    Aizu - 2200 Mr.Rito Post Office


最小生成树:
1   POJ - 1258Agri - Net
2   POJ - 2377 Bad Cowtractors
3   Aizu - 2224 Save your cats
4   POJ - 2395 Out of Hay

2.6 数学问题的解题窍门
UVA - 10006 Carmichael Numbers                      https://www.cnblogs.com/itdef/p/18114080 辗转相除法:
1 Aizu - 0005 GCD and LCM 2 POJ - 2429 GCD & LCM Inverse 3 POJ - 1930 Dead Fraction                       https://www.cnblogs.com/itdef/p/18114585 素数: 1 Aizu - 0009 Prime Number 2 POJ - 3126 Prime Path 3 POJ - 3421 X - factor Chains                     https://www.cnblogs.com/itdef/p/18101725  4 POJ - 3292 Semi - prime H - numbers 快速幂运算: 1 POJ - 3641 Pseudoprime numbers 2 POJ - 1995 Raising Modulo Numbers 第3章 出类拔萃——中级篇 3.1 不光是查找值!“二分搜索” 最大化最小值: 1 POJ - 3258 River Hopscotch 2 POJ - 3273 Monthly Expense 3 POJ - 3104 Drying 4 POJ - 3045 Cow Acrobats 最大化平均值: 1 POJ - 2976 Dropping tests 2 POJ - 3111 K Best 查找第k大的值: 1 POJ - 2010 Moo University - Financial Aid 2 POJ - 3662 Telephone Lines 其他: 1 POJ - 1759 Garland 2 POJ - 3484 Showstopper 3.2 常用技巧精选(一) 尺取法: 1 POJ - 2566 Bound Found 2 POJ - 2739 Sum of Consecutive Prime Numbers 3 POJ - 2100 Graveyard Design 反转: 1 POJ - 3185 The Water Bowls 2 POJ - 1222 EXTENDED LIGHTS OUT 弹性碰撞: 1 POJ - 2674 Linear world 折半枚举: 1 POJ - 3977 Subset 2 POJ - 2549 Sumsets 坐标离散化: 1 Aizu - 0531 Paint Color 3.3 活用各种数据结构 Binary Indexed Tree: 1 POJ - 1990 MooFest 2 POJ - 3109 Inner Vertices 3 POJ - 2155 Matrix 4 POJ - 2886 Who Gets the Most Candies ? 线段树和平方分割: 1 POJ - 3264 Balanced Lineup 2 POJ - 3368 Frequent values 3 POJ - 3470 Walls 4 POJ - 1201 Intervals 5 UVA - 11990 ``Dynamic'' Inversion 3.4 熟练掌握动态规划 状态压缩DP: 1 POJ - 2441 Arrange the Bulls 2 POJ - 3254 Corn Fields 3 POJ - 2836 Rectangular Covering 4 POJ - 1795 DNA Laboratory 5 POJ - 3411 Paid Roads 矩阵的幂: 1 POJ - 3420 Quad Tiling 2 POJ - 3735 Training little cats 利用数据结构高效求解: 1 POJ - 3171 Cleaning Shifts 3.5 借助水流解决问题的网络流 最大流与最小割: 1 POJ - 3713 Transferring Sylla 2 POJ - 2987 Firing 3 POJ - 2914 Minimum Cut 4 POJ - 3155 Hard Life 二分图匹配: 1 POJ - 1274 The Perfect Stall 2 POJ - 2112 Optimal Milking 3 POJ - 1486 Sorting Slides 4 POJ - 1466 Girls and Boys 5 POJ - 3692 Kindergarten 6 POJ - 2724 Purifying Machine 7 POJ - 2226 Muddy Fields 8 Aizu - 2251 Merry Christmas 最小费用流: 1 POJ - 3068 "Shortest" pair of paths 2 POJ - 2195 Going Home 3 POJ - 3422 Kaka's Matrix Travels 4 Aizu - 2266 Cache Strategy 5 Aizu - 2230 How to Create a Good Game 3.6 与平面和空间打交道的计算几何 极限情况: 1 POJ - 1981 Circle and Points 2 POJ - 1418 Viva Confetti 3 Aizu - 2201 Immortal Jewels 平面扫描: 1 POJ - 3168 Barn Expansion 2 POJ - 3293 Rectilinear polygon 3 POJ - 2482 Stars in Your Window 凸包: 1 POJ - 1113 Wall 2 POJ - 1912 A highway and the seven dwarfs 3 POJ - 3608 Bridge Across Islands 4 POJ - 2079 Triangle 5 POJ - 3246 Game 6 POJ - 3689 Equations 数值积分: 1 Aizu - 2256 Divide the Cake 2 Aizu - 2215 Three Silhouettes 第4章 登峰造极——高级篇 4.1 更加复杂的数学问题 模运算的世界: 1 POJ - 1150 The Last Non - zero Digit 2 POJ - 1284 Primitive Roots 3 POJ - 2115 C Looooops 4 POJ - 3708 Recurrent Function 5 POJ - 2720 Last Digits 矩阵: 1 POJ - 2345 Central heating 2 POJ - 3532 Resistance 3 POJ - 3526 The Teacher’s Side of Math 计数: 1 POJ - 2407 Relatives 2 POJ - 1286 Necklace of Beads 3 POJ - 2409 Let it Bead 4 Aizu - 2164 Revenge of the Round Table 5 Aizu - 2214 Warp Hall 4.2 找出游戏的必胜策略 推理与动态规划算法: 1 POJ - 1082 Calendar Game 2 POJ - 2068 Nim 3 POJ - 3688 Cheat in the Game 4 POJ - 1740 A New Stone Game Nim与Grundy数: 1 POJ - 2975 Nim 2 POJ - 3537 Crosses and Crosses 3 CodeForces - 138D World of Darkraft 4 POJ - 2315 Football Game 4.3 成为图论大师之路 强连通分量分解: 1 POJ - 3180 The Cow Prom 2 POJ - 1236 Network of Schools 2 - SAT: 1 POJ - 3678 Katu Puzzle 2 POJ - 2723 Get Luffy Out 3 POJ - 2749 Building roads LCA: 1 POJ - 1986 Distance Queries 2 POJ - 3728 The merchant 4.4 常用技巧精选(二) 栈: 1 POJ - 3250 Bad Hair Day 2 POJ - 2082 Terrible Sets 3 POJ - 3494 Largest Submatrix of All 1’s 双端队列: 1 POJ - 2823 Sliding Window 2 POJ - 3260 The Fewest Coins 3 POJ - 1180 Batch Scheduling 4 Aizu - 1070 FIMO sequence 4.5 开动脑筋智慧搜索 剪枝: 1 POJ - 1011 Sticks 2 POJ - 2046 Gap 3 POJ - 3134 Power Calculus A * 与IDA *1 POJ - 3523 The Morning after Halloween 2 POJ - 2032 Square Carpets 3 UVA - 10181 15 - Puzzle Problem 4.6 划分、解决、合并:分治法 数列上的分治法: 1 POJ - 1854 Evil Straw Warts Live 平面上的分治法: 1 Gym - 100240K Min Perimeter 2 CodeForces - 97B Superset 树上的分治法: 1 POJ - 2114 Boatherds 2 UVA - 12161 Ironman Race in Treeland 3 SPOJ - QTREE5 Query on a tree V 4.7 华丽地处理字符串 动态规划算法: 1 Aizu - 2212 Stolen Jewel 2 CodeForces - 86C Genetic engineering 字符串匹配: 1 CodeForces - 25E Test 2 Aizu - 1312 Where's Wally 后缀数组: 1 POJ - 1509 Glass Beads 2 POJ - 3415 Common Substrings 3 POJ - 3729 Facer’s string 4 Aizu - 2292 Common Palindromes 5 CodeForces - 123D String
复制代码

 

 

--------------------------------------------------------------------------------------------------------------------------------------------------------

 

《挑战程序设计竞赛1》 v2 (papamelon 中文题面) 

由于网站关闭 不再提供中文部分题解

第 1 章:蓄势待发——准备篇

papamelon 194. 抽签 dfs(挑战程序设计竞赛)

papamelon 192. 三角形(挑战程序设计竞赛)

papamelon 193. 蚂蚁(挑战程序设计竞赛)

papamelon 200. 抽签 II(挑战程序设计竞赛)

第 2 章:初出茅庐——初级篇 - 2.1 穷竭搜索

papamelon 201. 部分和问题(挑战程序设计竞赛)

papamelon 202. 水洼计数 Lake Counting(挑战程序设计竞赛)

papamelon 203. 迷宫的最短路径(挑战程序设计竞赛) 

第 2 章:初出茅庐——初级篇 - 2.2 贪心算法

papamelon 206. 硬币问题 II(挑战程序设计竞赛)

papamelon 212. 区间调度问题(挑战程序设计竞赛)

papamelon 213. 字典序最小问题 Best Cow Line(挑战程序设计竞赛)

papmelon 214. 萨鲁曼的军队 Saruman's Army(挑战程序设计竞赛)

papamelon 217. 栅栏修理 Fence Repair(挑战程序设计竞赛)

 

第 2 章:初出茅庐——初级篇 - 2.3 动态规划

 papamelon 218. 01背包问题(挑战程序设计竞赛)

 papamelon 220. 最长公共子序列问题(挑战程序设计竞赛)

 papamelon 219. 完全背包问题(挑战程序设计竞赛)

 papamelon 222. 多重部分和问题(挑战程序设计竞赛)

 papamelon 223. 最长上升子序列问题(挑战程序设计竞赛)

 papamelon 224. 划分数(挑战程序设计竞赛) 

 papamelon 225. 多重集组合数(挑战程序设计竞赛)

 

第 2 章:初出茅庐——初级篇 - 2.4 数据结构

papamelon 226. 远征 Expedition(挑战程序设计竞赛)

papamelon 241. 食物链(挑战程序设计竞赛)

 

第 2 章:初出茅庐——初级篇 - 2.5 图论

papamelon 242. 二分图判定(挑战程序设计竞赛)

papamelon 245. 征募 Conscription(挑战程序设计竞赛)

 

第 2 章:初出茅庐——初级篇 - 2.6 数学与数论

第 2 章:初出茅庐——初级篇 - 2.7 挑战 GCJ 的题目

papamelon 255. 贿赂囚犯 Bribe the Prisoners

 

第 2 章:初出茅庐——初级篇 - 课后习题 - 深度优先搜索

第 2 章:初出茅庐——初级篇 - 课后习题 - 广度优先搜索

第 2 章:初出茅庐——初级篇 - 课后习题 - 穷竭搜索

第 2 章:初出茅庐——初级篇 - 课后习题 - 贪心(区间)

 papamelon 302. 碰撞游戏 Stripies(挑战程序设计竞赛)

 

第 2 章:初出茅庐——初级篇 - 课后习题 - 贪心(其他)

第 2 章:初出茅庐——初级篇 - 课后习题 - 动态规划(基础)

papamelon 305. 求和方案 Sumsets

papamelon 306. 捡苹果 Apple Catching(挑战程序设计竞赛)

papamelon 307. 挤奶时间 Milking Time(挑战程序设计竞赛)

papamelon 308. 最廉价的回文串 Cheapest Palindrome(挑战程序设计竞赛)

 

第 2 章:初出茅庐——初级篇 - 课后习题 - 动态规划(优化递推关系式)

第 2 章:初出茅庐——初级篇 - 课后习题 - 动态规划(更困难的)

papamelon 327. 木棒 Wooden Sticks(挑战程序设计竞赛)

papamelon 328. 电路板 Bridging signals(挑战程序设计竞赛)

papamelon 344. 奶牛展览 Cow Exhibition(挑战程序设计竞赛) dp

 

第 2 章:初出茅庐——初级篇 - 课后习题 - 优先队列

 

第 2 章:初出茅庐——初级篇 - 课后习题 - 并查集

papamelon 348. 修复网络 Wireless Network(挑战程序设计竞赛)

papamelon 349. 城市帮派 Find them, Catch them(挑战程序设计竞赛)

 

第 3 章:出类拔萃——中级篇 - 3.1 二分搜索

papamelon 257. 下界 lower_bound(挑战程序设计竞赛)

papamelon 260. 最大化平均值(挑战程序设计竞赛)

 

第 3 章:出类拔萃——中级篇 - 3.2 常用技巧精选(一)

第 3 章:出类拔萃——中级篇 - 3.3 数据结构

第 3 章:出类拔萃——中级篇 - 3.4 动态规划

papamelon 318. 斐波那契数列(挑战程序设计竞赛)

papamelon 321. 铺砖问题(挑战程序设计竞赛)

 

第 3 章:出类拔萃——中级篇 - 3.6 平面空间的计算几何

poj 1127 Jack Straws 挑战程序设计竞赛

 

第 3 章:  3.1 课后习题 

已经关闭的oj  记录一下

posted on   itdef  阅读(543)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
历史上的今天:
2015-02-20 监控系统 内存占用率并记录于本地文件中

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示