
UVa OJ
小坏蛋_千千
im0qianqian_站在回忆的河边看着摇晃的渡船终年无声地摆渡,它们就这样安静地画下黄昏画下清晨......
展开
-
UVa 10154 - Weights and Measures
UVa 10154 - Weights and MeasuresI know, up on top you are seeing great sights, But down at the bottom, we, too, should have rights. We turtles can't stand it. Our shells will all crack!原创 2016-02-05 18:07:36 · 462 阅读 · 0 评论 -
UVa 10006 - Carmichael Numbers
UVa 10006 - Carmichael NumbersAn important topic nowadays in computer science is cryptography. Some people even think that cryptography is the only important field in computer science, and that lif原创 2016-02-05 19:23:31 · 527 阅读 · 0 评论 -
UVA 11538:Chess Queen
Chess QueenYou probably know how the game of chess is played and how chess queen operates. Two chess queens are in attacking position when they are on same row, column or diagonal of a chess board原创 2016-05-06 19:45:57 · 954 阅读 · 0 评论 -
UVA 11401:Triangle Counting
Triangle Counting You are given n rods of length 1, 2…, n. You have to pick any 3 of them & build a triangle. How many distinct triangles can you make? Note that, two triangles will be co原创 2016-05-06 19:55:28 · 742 阅读 · 0 评论 -
UVA 11572:Unique Snowflakes (尺取法)
问题描述:Emily the entrepreneur has a cool business idea: packaging and selling snowflakes. She has devised amachine that captures snowflakes as they fall, and serializes them into a stream of snowflake原创 2016-09-06 12:59:41 · 610 阅读 · 0 评论 -
UVA 1001:Say Cheese(最短路)
问题描述:Once upon a time, in a giant piece of cheese, there lived a cheese mite named Amelia Cheese Mite.Amelia should have been truly happy because she was surrounded by more delicious cheese than she原创 2016-09-06 14:26:47 · 858 阅读 · 2 评论 -
UVA 11396:Claw Decomposition(二分图判定)
问题描述:A claw is defined as a pointed curved nail on the end of each toe in birds, somereptiles, and some mammals. However, if you are a graph theory enthusiast, youmay understand the following specia原创 2016-09-06 14:30:16 · 555 阅读 · 0 评论