摘要: 棋盘游戏小希和Gardon在玩一个游戏:对一个N*M的棋盘,在格子里放尽量多的一些国际象棋里面的“车”,并且使得他们不能互相攻击,这当然很简单,但是Gardon限制了只有某些格子才可以放,小希还是很轻松的解决了这个问题(见下图)注意不能放车的地方不影响车的互相攻击。所... 阅读全文
posted @ 2017-11-22 11:16 _大美 阅读(156) 评论(0) 推荐(0) 编辑
摘要: A Bug's Life Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 17246 Accepte... 阅读全文
posted @ 2017-11-22 10:56 _大美 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Courses Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determin... 阅读全文
posted @ 2017-11-22 10:50 _大美 阅读(138) 评论(0) 推荐(0) 编辑
摘要: The Accomodation of StudentsThere are a group of students. Some of them may know each other, while others don't. For example, A and B ... 阅读全文
posted @ 2017-11-22 10:45 _大美 阅读(113) 评论(0) 推荐(0) 编辑
摘要: C. K-Dominant Charactertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are g... 阅读全文
posted @ 2017-11-15 11:14 _大美 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Luba And The TicketLuba has a ticket consisting of 6 digits. In one move she can choose digit in any position and replace it with arbi... 阅读全文
posted @ 2017-11-14 21:36 _大美 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Catch That CowTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 100270Accepted: 31366DescriptionFarmer John has been informed o... 阅读全文
posted @ 2017-11-14 21:31 _大美 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 棋盘问题Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 52452Accepted: 25350Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意... 阅读全文
posted @ 2017-11-14 21:27 _大美 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Fire NetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12961 Accepted Subm... 阅读全文
posted @ 2017-11-14 21:23 _大美 阅读(124) 评论(0) 推荐(0) 编辑
摘要: A * B Problem Plus Calculate A * B. InputEach line will contain two integers A and B. Process to end of file. Note: the length of each... 阅读全文
posted @ 2017-11-13 10:53 _大美 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Five Dimensional PointsYou are given set of n points in 5-dimensional space. The points are labeled from 1 to n. No two points coinci... 阅读全文
posted @ 2017-11-13 10:46 _大美 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Arpa and an exam about geometryArpa is taking a geometry exam. Here is the last problem of the exam.You are given three points a, b, ... 阅读全文
posted @ 2017-11-13 10:35 _大美 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Planning Helen works in Metropolis airport. She is responsible for creating a departure schedule. There are n flights that must depart... 阅读全文
posted @ 2017-11-13 10:18 _大美 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Marvolo Gaunt's Ring Professor Dumbledore is helping Harry destroy the Horcruxes. He went to Gaunt Shack as he suspected a Horcrux to... 阅读全文
posted @ 2017-11-12 16:51 _大美 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Maxim Buys an ApartmentMaxim wants to buy an apartment in a new house at Line Avenue of Metropolis. The house has n apartments that a... 阅读全文
posted @ 2017-11-12 16:45 _大美 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Pie RulesYou may have heard of the pie rule before. It states that if two people wish to fairly share a slice of pie, one person shoul... 阅读全文
posted @ 2017-11-12 16:31 _大美 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Did you mean...Beroffice text editor has a wide range of features that help working with text. One of the features is an automatic sea... 阅读全文
posted @ 2017-11-12 16:14 _大美 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Which floor? In a building where Polycarp lives there are equal number of flats on each floor. Unfortunately, Polycarp don't remember ... 阅读全文
posted @ 2017-11-12 16:09 _大美 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Table Tennis n people are standing in a line to play table tennis. At first, the first two players in the line play a game. Then the ... 阅读全文
posted @ 2017-11-12 15:49 _大美 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Nikita and stringOne day Nikita found the string containing letters "a" and "b" only.Nikita thinks that string is beautiful if it can ... 阅读全文
posted @ 2017-11-12 15:15 _大美 阅读(183) 评论(0) 推荐(0) 编辑