《题目与解读》红书 训练笔记目录《ACM国际大学生程序设计竞赛题目与解读》

Posted 繁凡さん

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了《题目与解读》红书 训练笔记目录《ACM国际大学生程序设计竞赛题目与解读》相关的知识,希望对你有一定的参考价值。

虽然2012年出版的老书了,但是是由三次世界冠军的上海交大ACM队出版的书籍,选择的题目是ACM经典中的经典,书中有非常详细的题解,可以学到很多东西,值得一刷。

第一部分

第一章 数学

1.1 概率

Coupons UVA 10288
Generator ZOJ 2619
A Dinner with Schwarzenegger!!! UVA10217

1.2 代数

1. 2.1 Polya

Arif in Dhaka UVA 10294

1. 2.2 矩阵

TowerHDU 2971
XX Language ZOJ 2113

1. 2.3 线性方程组

Ars LongaUVALive 3563

1. 2.4 线性规划

Expensive DirnkHDU 2979

1.3 组合

1. 3.1 基本排列组合

The Unreal TournamentUVA 10207

1. 3.2 容斥原理

Jackpot Gym 101648J
The Almost Lucky Number SCU 3502

1. 3.3 生成函数

Vasya’s Dad URAL 1387

1. 3.4 生成树计数

Organising the OrganisationUVA 10766

1. 3.5 综合

Hero of Our TimeSGU 481
Permutation (缺)

1.4 博弈

Battle for the Ring URAL 1540
Fool’s Game POJ 3153
Points Game URAL 1397

1.5 数论

1. 5.1 模线性方程

Integer Sequences SGU 140

1. 5.2 欧几里得

WizardsUVALive 4305

1. 5.3 欧拉定理

Strange LimitZOJ 2674

1. 5.4 欧拉函数

GCD DeterminantUVALive 4190

1. 5.5 平方剩余

Square RootURAL 1132

1. 5.6 原根

Fermat’s Last TheoremSGU 511

1. 5.7 整除与剩余

Brute-Force AlgorithmHDU 3221
Interal RootsPOJ 3471
Vivian’s ProblemZOJ 2360

1. 5.8 中国剩余定理

Voyager 1ZOJ 3341

1.6 分析

BridgeZOJ 2614

第二章 数据结构

2.1 优先队列

The Lazy Programmer POJ 2970

2.2 线性表

Book Pile SGU 271

2.3 散列表

Language Recognition POJ 3576

2.4 并查集

Feel Good ZOJ 2642
Parity URAL 1003

2.5 排序

Inversions SGU 180
All for LoveSGU 474

2.6 ST表

LubenicaSPOJ LUBENICA

2.7 树状数组

ElectionsSGU 336
Stars URAL 1028

2.8 线段树

Dynamic RankingZOJ 2112
Wild West POJ 2944

2.9 可并堆

Monkey KingZOJ 2334

2.10 平衡树

TreediffSGU 507
维护数列 HYSBZ 1500

2.11 动态树

OTOCISPOJ OTOCI

第三章 图论

3.1 路径

3. 1.1 连通性

Network Attack URAL 1557
Synchrograph SGU 219

3. 1.2 欧拉路

Strange Graph SGU 156

3. 1.3 基本最短路

Animal Run UVA 1376
New Islands UVALive 4098
Recover Path SGU 515
Suffix-Replacement Grammars UVALive 4455

3. 1.4 有负权的最短路

Layout POJ 3169
Sightseeing Cows POJ 3169
Word Rings POJ 2949

3.2 匹配

3. 2.1 二分图匹配

Double NP-Hard UVA 10984
Emergency Pizza Order POJ 2009
Number Graph TopCoder 10319
Rooks UVA 10615

3.2.2 二分图最优匹配

Railway Communication SGU 252
The Great Wall Game UVALive 3276
Warehouse UVA 10888

3. 2.3 稳定婚姻

Ladies’ Choice ZOJ 3037

3.3 树

3. 3.1 最小生成树

Confidential URAL 1416
Island Explorer HDU 3228

3. 3.2 最优比率生成树

Portkey Network URAL 1447

3.4 网络流

3. 4.1 最大流(最小割)

Bomb, Divide ans Conquer UVA 10989
Buy one, get the rest free UVA 10983
Destroying The Graph POJ 2125
Dual Core CPU POJ 3469
Network Wars ZOJ 2676
Rectangle of Permutation UVALive 4501
The Glorious Karlutka River SGU 438

3. 4.2 有上下界的网络流

Flow construction SGU 176
Reactor Cooling SGU 194

3. 4.3 费用流

Highway Patrol UVALive 4722
Insurrection UVA 11146
Paint the Roads UVALive 2197
Shortest pair of paths ZOJ 3130

第四章 计算几何

4.1 多边形

AreasSGU 209
Cave CrisisHDU 3151
ChocolateURAL 1058
Ancient vending machineZOJ 3271
Fool’s DayPOJ 2099

4.2 圆

Sweet DreamUVA 10969
Malfatti CirclesPOJ 3808
Get Out!ZOJ 2318
BiscuitsURAL 1429

4.3 凸包

Mixed JuiceZOJ 3154
FuelHYSBZ 1252

4.4 半平面交

Fairies’ DefenseHDU 2933
Largest CircleGym 101366G

4.5 离散化

Phone cellZOJ 2978
Shy PolygonsPOJ 2747
降雨量FZU 1041
月下柠檬树HYSBZ 1502

4.6 立体几何

3D TrianglesUVA 11275
Lowest PyramidPOJ 3520
The Return of CarlUVALive 4447

第五章 求解策略

5.1 搜索

Holedox MovingPOJ 1324
Insecure in PragueUVALive 2996
Mines For DiamondUVA 10605
Power CalculusZOJ 2824
智破连环阵HYSBZ 4622

5.2 贪心

Beijing Guards UVALive 3177
Body Check ZOJ 3334
Cow Arobats POJ 3045
Keep the Customer Satisfied UVALive 3507

5.3 递推

Dipute URAL 1309
Dropping water ballons UVA 10934
Questions URAL 1098
管道取珠HYSBZ 1566

5.4 分治

Friendly Points Gym 101371E
Mokia HYSBZ 1176
Tree POJ 1741

5.5 动态规划

5. 5.1 经典问题

Boxes of Chocolates Again UVA 10590
Greatest Common Increasing Subsequence ZOJ 2432
Inheritance SGU 131
Long Live the Queen SGU 143
Prince and Princess UVA 10635

5. 5.2 朴素动态规划

Clock [problem:Gym- 100286C]
Damn Couples ZOJ 3161
Decrypt the Dragon Sroll POJ 3717
Dice contest ZOJ 2446
Drive through MegaCity UVALive 4374
Facer’s Chocolate Dream POJ 3718
Incredible! POJ 2102
Lights ZOJ 3388
Network Connection POJ 3375
Painting the balls SCU 3037
Persephone UVA 10884
Post offices UVALive 4273
Salary for Robots URAL 1696
Salesman SPOJ SALESMAN
Shoveling Snow UVA 10863
Strange Dream (缺) (Balkan OI 2007)
The Best Name for Your Baby POJ 3136
The Bookcase POJ 3124
Think Positive ZOJ 2592
Wildcards Gym 101368I
Yet Another Answer URAL 1745
二叉查找树 HYSBZ 1564

5. 5.3 树形

Apple Transportation ZOJ 3231
Chandelier POJ 2161
Counting heaps HDU 2974
Succession UVALive 4685
Tribe Council SPOJ TRIBE2
Vaccination Centers UVALive 4527
网络收费 HYSBZ 1495

5. 5.4 按位动态规划

Almost Lucky Numbers SGU 258
Amount Of Degrees URAL 1057
Hotel in Ves Lagos Gym 101411H
password Remembering UVALive 4498

5. 5.5 状态压缩

Controlled Tournament Aizu 2053
Easter Eggs UVA 10857
Fun Game POJ 2052
Integer Transmission HDU 2983

5. 5.6 连通性

Connect (缺) (CEOI 2006)
Channel UVALive 4789
Manhattan Wiring POJ 3133
Paint Me Less POJ 3732
Pipes POJ 2064
Tour in the Castle ZOJ 3256

5. 5.7 优化

Euro (缺) (Balkan OI 2003)
Fibonacci Subsequence ZOJ 2672
Nice Prefixes UVA 11625
Quadratic Functions POJ 3418
Two Sawmills (缺) (CEOI 2004)
Frogs HYSBZ 1514
诗人小G HYSBZ 1563

5.6 模拟

Archery HYSBZ 3353
Exciting Time HDU 3224
Flip and Turn POJ 3106
Water Tanks UVA 1066

5.7 构造

Airline Company URAL 1040
Funny Language POJ 3867
Payment System POJ 3064
Square country 3 URAL 1667
Train Car Sorting URAL 1568

5.8 二分

Array Transformations TopCoder 10428
Doors Gym 100761D
Food Competition ZOJ 3152

5.9 三分

Fire Station Building Gym 100206B

5.10 离散化

Crop circles HDU 2477

5.11 遗传算法

Sherlock Holmes ZOJ 3125

第六章 论题选编

6.1 字符串

6. 1.1 KMP

Cow Patterns POJ 3167

6. 1.2 Trie

Billing Table POJ 3149

6. 1.3 后缀数组

Stammering Aliens POJ 3882
Common Substrings POJ 3415
Connecting the Segment ZOJ 3296

6. 1.4 自动机

Censored! POJ 1625

6. 1.5 Rabin-Karp

Square Palindrome Gym 101370H

6.2 最近公共祖先

The Merchant POJ 3728
Transpotation Network ZOJ 2114
Design the city ZOJ 3195

6.3 2-SAT

Game with cards URAL 1382
Cipher Gym 101365B

6.4 快速傅里叶变换

K-neighbor substrings UVALive 4671

第二部分 题 库

4 Values Whose Sum is 0 203

8G Island 203

A Binary Apple Tree 204

A Dinner with

Schwarzenegger!!! 204

A Foldy but a Goody 205

A Game with Colored

Balls 206

A Line Painting 207

A Secret Book 207

A Simple Pendulum 208

Abelian Groups 209

Aerodynamic 209

Again Palindrome 210

Against Mammoths 210

Air Conditioning

Machinery 211

All Your Bases Belong

to Us 212

Alphabet 213

Alternating Sum of Digits 214

Always an Integer 215

Amphiphilic Carbon

Molecules 216

Anansi’s Cobweb 216

Ancient decoration 217

Angry Teacher 218

Anniversary Party 218

Another Chocolate

Maniac 219

Another Minimum

Spanning Tree 220

Ants II 221

Ants 221

Apple or Doughnut 222

Archipelago 222

Area 51 223

Arrays 224

Art of War 225

Asteroids 226

Astronomy 226

Autocompletion 227

Automaton 228

B-Station 229

Balance 229

Barisal Stadium 233

Battle 234

Battle of the Triangle 234

Battle 235

Be a Smart Raftsman 236

Be Wary of Roses 237

Beloved Sons 238

Best Cow Line, Gold 238

Bigger is Better 239

Binary Lexicographic

Sequence 239

Bingo 240

Bishops 241

Bit Compressor 242

Bitmap 242

Black & White 243

Black Box 243

Black Vienna 244

Black-white king 245

Blind Walk 246

Bone Sort 247

Boring Sequence

Operations 248

Boring. Hot. Summer… 249

Breadtree 249

Bridges 250

Broken Chessboard 251

Bubble Sort 251

Business Center 252

Buttons 253

Buy or Build 254

Cactus 254

Cake Share 255

Camera in the Museum 255

Card Game 256

Casino 257

Castles 259

Cave Exploration 260

Centers Of Symmetry 261

Central Heating 261

Centroid 262

Challenge of Bravery 262

Challenge of Wisdom 263

Chameleons All Around 263

Changing Digits 265

Chapayev 265

Chemist’s Math 266

Chessmaster 267

ChiBi 268

Chinese Hockey 268

Choose The Best 269

Choreographer Problem 269

Circle Drawing 270

Circular Railway 271

Clever’s Problem 272

Cliquers strike back 272

Cocktail 273

Collecting Bugs 274

Collecting Luggage 275

Collector’s Problem 276

Color a Tree 276

Colorful Decoration 277

Combinations 278

Compositions 278

Compressed String 279

Concatenation of

Languages 280

Conduit Packing 281

Confectionery 281

Connect It, If You Can! 282

Connecting People 283

Connections in Galaxy

War 284

Consecutive Ones 284

Constructive Plan 285

Cookie Choice Ⅱ 286

Cookie Choice 286

Cover an Arc 287

Coverage 287

Crack 288

Cracking RSA 289

Crazy Professor 289

Crazy Thairs 290

Cross Counting 291

Cross Stitch 292

Crossing Streets 293

Crossing 294

Cryptography 294

Cube Root 295

Cubes 296

Cyclic Polygons 297

Dangerous Pattern 297

Darkterror’s Combos 298

{Sum+=i++} to Reach N 299

Darts 299

Deciphering 300

Dendrograms 301

DFA 302

Dice Compare 302

Difference Is Beautiful 303

Different Digits 304

Dig or Climb 304

Digit Counting 306

Digit Puzzle 307

Dinner’s Ready 308

Dirt 308

Discrete Roots 309

Distinct Substrings 310

Divide and conquer 311

Divisibility by 15 311

Divisibility Testing!

Wow! 312

Document Indexing 313

Dog Distance 314

Domestic Networks 314

Domino Sorting 315

Door painting 315

Double Cyclic 316

Double Patience 317

Driving Directions 317

Droid Formation 319

Dueue’s Quiz 320

Dungeon 321

Duopoly 321

dwarfs 322

Edison 323

Editor Nottobad 324

Electrician 325

Elementary symmetric

functions 325

Elevator 326

Ellipse 327

Equal Squares 327

Equation 329

Escape From Enemy

Territory 329

Evacuation Plan 330

Exclusive Access 2 330

Expectation 331

Expedition 331

Exploring Pyramids 332

Expression Evaluation 333

Eyeball Benders 334

Fall the Brick 334

Farey Sequence 335

Fast Typing 337

Fence 338

Feng Shui 338

Ferry Lanes 339

Fibonacci System 339

File System Travel 340

Find a Multiple 341

Find the Border 341

Find the Latitude 342

Find the Number 343

Finding Treasure 344

Fixing the Great wall 345

Flight Safety 345

Fliptile 347

Flying Right 348

Fold Paper Strips 349

Foot Notes 350

Formula 350

From G to H and back 351

Full Steiner Topologies 352

Fund Management 353

Funny Feature 354

Funny Strings 354

Gaby Ivanushka 355

Game for Little Johnny 357

Game 358

Garbling Game 358

Garlands 359

Gena’s Soul Cake 360

Geometrical Dreams 361

Geometry Problem 362

Given a string 362

Go Downstairs 362

Gold Balanced Lineup 363

Gold Bars 364

Google Book 364

Gourmet Grazers 365

Great Berland Wall 366

Greatest Greatest

Common Divisor 367

Greedy Path 367

Guards 367

Gunman 369

Hanoi Tower 369

Hard Life 371

Harder Sokoban

Problem 371

Hardwood Cutting 372

Harmony Forever 373

Haybale Guessing 373

Heapsort 374

Heavy Disc 375

Height, Bisector and

Median 376

Hell on the Markets 376

Help Bubu 377

Help Little Laura 378

Here’s a Product Which

Will Make You Tensor 378

Heroes 379

Hexagon Coin Toss 380

Hexagonal Parcels 382

Hills 382

Holey Square Tiling 383

Horn Clauses 385

Hour Glass 386

How Many bases? 387

How many ones needed 387

Huffman Codes 388

Hyperrook 389

I-country 389

Ice-cream Tycoon 390

Ideal Frame 391

Illuminated Planet 392

Illumination of Buildings 392

Ilya Murometz 393

Immaterial and Missing

Power 393

Impudent Thief 394

In the army now 395

Increasing Subsequences 395

Infected Land 396

Infinite Fraction 397

Inheritance 397

Inner Vertices 398

Inspection 399

Intelligent Cats 399

Interconnect 400

Interesting Yang Hui

Triangle 401

Irrelevant Element 402

Islands and Bridges 402

It’s Never Too Late 403

Jacks Socks 404

Jacquard Circuits 404

Jam’s Store 405

Japanese Puzzle 405

Java Certification 406

Jenny’s First Exam 407

Joke with Turtles 407

Journey 408

Journey with Pigs 409

Jumping Joe 409

K Best 410

K-based Numbers.

Version 3 411

K-th Number 411

Kadj Squares 412

Kaka’s Matrix Travels 412

Key Insertion 413

Key Substrings 414

Key Task 415

Keyword 416

Khepel’s Problem 416

Kindergarten Graduation 417

King Berl Ⅵ 417

Kingdom Partitioning 418

Kingdom Map 419

Knapsack Ⅱ 420

Knights of the Round

Table 420

Knowledge for the

masses 421

Landscaping 422

Lap time in a racing

circuit 423

Largest Rectangle in a

Histogram 424

Laser Ball 424

Lattice Animals 425

Lattice Squares 426

Lazy Cows 426

Lazy Susan 427

Leonardo’s Notebook 428

Let’s play a game 429

Liar or Not Liar that

is the… 429

Lifting the stone 430

Light 430

Lights 431

Line Chart 432

Lineland’s Airport 433

Link 434

Little Jumper 435

Longest Repeated

Substring 435

Lottery 436

Love for Pizza 437

Lucky cities 437

Lucky numbers 438

Lucky Tickets 438

Machine Schedule 439

Magic Car 440

Magic Pairs 440

Magic Rings 441

Magic Seven 442

Mahjong 443

Map Generator 444

Marble Game 445

March of the Penguins 446

Martian Mining 446

Mathematics Ⅱ 447

Mathematics 448

Matrix Processing 448

Matrix 449

Maximal Clique 450

Maximum Ⅱ 451

Maximum 452

Mechanics 453

Median 454

Meetings 454

Mega Man’s Missions 455

Military Game 455

Ministry 457

Mobile Positioning 458

Mobile Tower 459

Moles and Holes 460

More Sweets! 460

Mountain Road 461

Mouse 462

Movie Promotion 463

Moving to Nuremberg 464

National Park 464

Net Loss 465

Network Mess 465

Network 467

Never End 468

New Go Game 469

Nikifor’s walk 469

Nikifor-3 470

No Smoking 471

Nuclear Plants 472

Number Game 473

Number Permutations 474

Obfuscation 475

Objective Berlin 476

Obscene words filter 476

Observers Coloring 477

Optimal Dartboard 478

Optimal Strategy for the

ICPC 478

Order 479

Orthogonal Circles 479

Pairs 480

Palindrom 481

Palindromic Subsequence 481

Party of 8g 482

Pascal vs C++ 483

Pass Licenses 484

Password Suspects 484

Perspective 485

Petya the Hero 486

Pinocchio 486

Piotr’s Ants 487

PLAHTE 488

Playing with Matches 488

Plot Purchase 489

Police and Thief 490

Polygon 490

Postal Charges 491

Prefixes and Suffixes 492

Present for MM 492

Prester John 493

Problem Stacks 494

Protecting Zonk 494

Prototype 496

Pyramid 497

Quad Tiling 498

Quadratic Equation 498

Rabbit Hunt 499

Racing Route 499

Railway Tickets 500

Random Walk 501

Rebus 502

Rectangular Polygons 503

Regions 504

Repair Depots 504

Requirements 505

Resistance 506

Right Words 506

Rings’n’Ropes 507

Roads 508

Robot 508

Rooks 509

Room Assignments 509

Rotating a Frame 510

Rotation Estimation 511

Routing Ⅱ 512

Routing 513

Ruler 514

Sails 515

Search for a Hiding-Place 516

Searching the String 517

Security by Ambiguity 518

Separate Points 519

Sequence Median 520

Sequence 520

Sequence Sum 521

Shadow Area 522

Sharif Super Computer 523

Shoot the Bullet 523

Shoot your gun! 524

Sightseeing 525

Signals and Systems 525

Simple Game on a Grid 526

Simple Sequence 526

Slalom 527

Snake 528

Special Subsequence 529

Square Country 2 530

Square 530

Stone Grid 531

Strange Game 532

Strange People 533

Street Lamp 534

Student’s Morning 534

Subnumber 535

Suffix reconstruction 536

Super Snake 537

Super squares 537

Super Memo 538

Sweet 539

Switchback 540

Taxi 541

Team Building 541

Team Forming 542

Team Tryouts 542

That Nice Euler Circuit 544

The Archaeologist’s

Trouble II 544

The art to the broad

masses! 545

The book 546

The Deadly Olympic

Returns 546

The Different Task 547

The Gossiping System 548

The Great Escape 548

The Greatest Angle 549

The Laurel Hardy Story 550

The longest constant

gene 551

The Lucky Numbers 551

The Mastermind Master’s

Mind 552

The Merchant Guild 553

The Monochrome

Picture 554

The Most Frequent

Number 554

The Party of Ural

Champions 555

The Prufer Code 555

The Rotation Game 557

The SetStack Computer 558

The Sky is the Limit 558

The Staircases 559

The Sultan’s Problem 560

The Teacher’s Side of

Math 560

The Warehouse 561

Theodore Roosevelt 562

Thermal Death of the

Universe 562

Ticket Office 563

Ticket to Ride 564

Tiling Dominoes 564

Titanic 565

Tmutarakan exams 566

To Go or Not to Go 566

To xor or not to xor 567

Toll Road 567

Top Secret 568

Total Solar Eclipse 568

Tower of Hanoi 569

Trade 570

Traffic Jam 570

Train 571

Training little cats 572

Transcribed Books 572

Transversal 573

Trash 574

Travelling tours 574

Treasury 575

Tree 2 575

Tri 576

Trie, Trie Again 577

Trigonometric

Optimization 578

Trip 579

TUSK 580

Twist and whirl - want to

cheat 580

Two professors 581

Two shortest 582

UFO Circles 583

Undetectable Tour 584

Unequalled Consumption 585

Unique Attack 585

Very Simple Counting 586

Walls II 586

Walls 587

Warping of N Dimensional

Space 588

Water Ring 588

Weapon 589

Weird Dissimilarity 590

Wheel Good 590

Which is next 591

White Streaks 592

Winsock 3 Beta 593

Wolves and Sheep 593

Wonder Team 594

Working at the

Restaurant 595

Worms 595

X+R(X)=N 596

XOR Sum 597

Youth Hostel Dorm 597

Yungom 598

ZMAJ 599

Zones 599

瑰丽华尔兹 600

智慧珠游戏 601

植物大战僵尸 601

%https://vjudge.ppsucxtt.cn/article/703

以上是关于《题目与解读》红书 训练笔记目录《ACM国际大学生程序设计竞赛题目与解读》的主要内容,如果未能解决你的问题,请参考以下文章

红书《题目与解读》第一章 数学 题解《ACM国际大学生程序设计竞赛题目与解读》

数学 题解《ACM国际大学生程序设计竞赛题目与解读》

数学 题解《ACM国际大学生程序设计竞赛题目与解读》

华东交通大学ACM-ICPC训练基地简介

ACM-ICPC国际大学生程序设计竞赛北京赛区(2017)网络赛 题目9 : Minimum

《ACM国际大学生程序设计竞赛题解Ⅰ》——基础编程题