acm
东さん
无知而狂妄
展开
-
A - TEX Quotes
UVA 272 Tex QuotesTeX is a typesetting language developed by Donald Knuth. It takes source text together with a few typesetting instructions and produces, one hopes, a beautiful document. Beautiful doc原创 2017-03-22 21:53:16 · 922 阅读 · 0 评论 -
第四届福建省大学生程序设计竞赛(部分)
第四届福建省大学生程序设计竞赛A.Forever 0.5FZU 2140 题意: 给你一个数n,让你找出n个点,满足一下关系: 任意两点的距离不大于1.0 所有点到原点的距离不大于1.0 恰好有N对点的距离为1.0 由这些点构成的n边形的面积不小于0.5 由这些点构成的n边形的面积不大于0.75 思路:由于所有点到原点距离为1,那么首先想到的是圆。 假设输入的点为...原创 2018-04-15 18:13:10 · 775 阅读 · 0 评论 -
2015年浙江acm省赛题解(部分)
2015年浙江acm省赛题解A.Ace of Aces题意:输入一堆数,选择出出现最多的数字,如果像2、2、3、3,次数一样的情况输出Nobody思路:利用桶排序,排序,ok#include<cstdio>#include<iostream>#include<algorithm>using namespace std;const ...原创 2018-04-14 20:54:41 · 892 阅读 · 0 评论 -
HDU 1029 - Ignatius and the Princess IV(数学)
输入N个数 输出N个数中出现至少(N+1)/ 2 如果一个数输出超过一半,那么排序之后中间那个数一定就是需要的那个数;#include<iostream>#include<algorithm>using namespace std;const int maxn = 999999 + 5;int a[maxn];int main () { ...原创 2017-10-10 21:07:59 · 245 阅读 · 0 评论 -
CodeForces - 266B - B. Queue at the School
题目连接:http://codeforces.com/problemset/problem/266/B题目描述DescriptionDuring the break the schoolchildren, boys and girls, formed a queue of n people in the canteen. Initially the children stood in the ord原创 2017-07-18 20:34:46 · 621 阅读 · 1 评论 -
CodeForces - 467A - A. George and Accommodation
题目连接:http://codeforces.com/problemset/problem/467/A题目描述DescriptionGeorge has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex who has also entered th原创 2017-07-18 20:39:35 · 784 阅读 · 0 评论 -
L - The Dole Queue
In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applicants will be placed in a large c原创 2017-03-26 14:25:15 · 499 阅读 · 0 评论 -
H - Digit Counting
Trung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequence of consecutive integers starting with 1 to N (1 < N < 10000). After that, he counts the number of原创 2017-03-26 14:19:29 · 239 阅读 · 0 评论 -
I - Box
Ivan works at a factory that produces heavy machinery. He has a simple job — he knocks up wooden boxes of different sizes to pack machinery for delivery to the customers. Each box is a rectangular para原创 2017-03-26 14:21:17 · 525 阅读 · 0 评论 -
G - All in All
You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss原创 2017-03-26 14:17:48 · 256 阅读 · 0 评论 -
F - Molar mass
An organic compound is any member of a large class of chemical compounds whose molecules contain carbon. The molar mass of an organic compound is the mass of one mole of the organic compound. The molar原创 2017-03-26 14:16:01 · 448 阅读 · 0 评论 -
D - Circular Sequence
Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence“CGAGTCAGCT”, that is, the last symbol “T” in “CGAGTCAGCT” is connected to the first symbol “C”. W原创 2017-03-26 14:13:11 · 336 阅读 · 0 评论 -
C - Palindromes
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string “ABCDEDCBA” is a palindrome because it is the same when the string is read from left原创 2017-03-26 14:09:25 · 937 阅读 · 0 评论 -
E - Score
There is an objective test result such as “OOXXOXXOOO”.An ‘O’ means a correct answer of a problem and an ‘X’ means a wrong answer.The score of each problem of this test is calculated by itself and its原创 2017-03-23 00:06:31 · 1053 阅读 · 0 评论 -
B - WERTYU
A common typing error is to place the hands on the keyboard one row to the right of the correct position. So “Q” is typed as “W” and “J” is typed as “K” and so on. You are to decode a message typed in原创 2017-03-22 22:32:15 · 300 阅读 · 0 评论 -
第六届浙江省赛题解(部分)
第六届浙江省赛题解A. Second-price Auction题目链接题目大意有n个投标者,投标最高的获得物品,需要支付第二投标者的价格.解题思路使用结构体,保存投标的价格和一开始的排序. 然后根据投标价格排序,使用sort就可以了AC代码#include<cstdio>#include<cstring>#incl...原创 2018-04-23 07:15:53 · 286 阅读 · 0 评论