白书
caorui_blog
这个作者很懒,什么都没留下…
展开
-
Lake Counting POJ - 2386
Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains...原创 2019-08-07 23:31:07 · 72 阅读 · 0 评论 -
Smallest Difference POJ - 2718
Given a number of distinct decimal digits, you can form one integer by choosing a non-empty subset of these digits and writing them in some order. The remaining digits can be written down in some orde...原创 2019-08-27 21:35:16 · 131 阅读 · 0 评论 -
Fence Repair POJ - 3253
Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needsN(1 ≤N≤ 20,000) planks of wood, each having some integer lengthLi(1 ≤Li...原创 2019-08-15 19:48:19 · 111 阅读 · 0 评论 -
Saruman's Army POJ - 3069
ithinRunits of some palantir.InputThe input test file will contain multiple cases. Each test case begins with a single line containing an integerR, the maximum effective range of all palantirs ...原创 2019-08-15 18:43:19 · 107 阅读 · 0 评论 -
Meteor Shower POJ - 3669
Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they hit. Anxious for her safety, she vows to find her way to a sa...原创 2019-08-10 15:30:26 · 168 阅读 · 0 评论 -
Cheese Aizu-0558(BFS)
チーズ ()問題今年も JOI 町のチーズ工場がチーズの生産を始め,ねずみが巣から顔を出した.JOI 町は東西南北に区画整理されていて,各区画は巣,チーズ工場,障害物,空き地のいずれかである.ねずみは巣から出発して全てのチーズ工場を訪れチーズを 1 個ずつ食べる.この町には,N 個のチーズ工場があり,どの工場も1種類のチーズだけを生産している.チーズの硬さは工場によって異なっており,硬...原创 2019-08-09 22:32:27 · 195 阅读 · 0 评论 -
Ball Aizu - 0033
玉図のように二股に分かれている容器があります。1 から 10 までの番号が付けられた10 個の玉を容器の開口部 A から落とし、左の筒 B か右の筒 C に玉を入れます。板 D は支点 E を中心に左右に回転できるので、板 D を動かすことで筒 B と筒 C のどちらに入れるか決めることができます。開口部 A から落とす玉の並びを与えます。それらを順番に筒 B 又は筒 Cに入れて...原创 2019-08-09 00:07:01 · 197 阅读 · 0 评论 -
Property Distribution Aizu - 0118
タナカ氏がHWアールの果樹園を残して亡くなりました.果樹園は東西南北方向にH×Wの区画に分けられ、区画ごとにリンゴ、カキ、ミカンが植えられています.タナカ氏はこんな遺言を残していました.果樹園は区画単位でできるだけ多くの血縁者に分けること.ただし、ある区画の東西南北どれかの方向にとなりあう区画に同じ種類の果物が植えられていた場合は、区画の境界が分からないのでそれらは1つの大きな区画として扱うこ...原创 2019-08-08 14:14:11 · 130 阅读 · 0 评论 -
Red and Black POJ - 1979
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But he c...原创 2019-08-08 13:17:20 · 187 阅读 · 0 评论 -
Ants POJ - 1852
题目:一队蚂蚁在一根水平杆上行走,每只蚂蚁固定速度 1cm/s. 当一只蚂蚁走到杆的尽头时,立即从秆上掉落. 当两只蚂蚁相遇时它们会掉头向相反的方向前进. 我们知道每只蚂蚁在杆上的初始位置, 但是, 我们不知道蚂蚁向哪个方向前行. 你的任务是计算所有蚂蚁都杆上掉落可能的最短时间和最长时间.Input第一行包含一个整数,给出测试实例数量. 每组数据开始有两个整数: 杆的长度 (单位:...原创 2019-08-05 18:31:15 · 215 阅读 · 0 评论 -
Backward Digit Sums POJ - 3187
FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certain order and then sum adjacent numbers to produce a new list with one fewer number. ...原创 2019-08-28 00:18:58 · 107 阅读 · 0 评论