![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
暴力
ZZ --瑞 hopeACMer
WA就完事了
展开
-
F
Pirates have finished developing the typing software. He called Cathy to test his typing software. She is good at thinking. After testing for several days, she finds that if she types a string by some...转载 2019-02-05 21:07:44 · 150 阅读 · 0 评论 -
B
In this problem we assume the Earth to be a completely round ball and its surface a perfect sphere. The length of the equator and any meridian is considered to be exactly 40 000 kilometers. Thus, trav...原创 2019-02-11 23:04:19 · 141 阅读 · 0 评论 -
C
A big company decided to launch a new series of rectangular displays, and decided that the display must have exactly n pixels.Your task is to determine the size of the rectangular display — the numbe...原创 2019-02-11 23:05:12 · 166 阅读 · 0 评论 -
H
Polycarp has interviewed Oleg and has written the interview down without punctuation marks and spaces to save time. Thus, the interview is now a string s consisting of n lowercase English letters.The...原创 2019-02-11 23:07:34 · 80 阅读 · 0 评论 -
J
Pari has a friend who loves palindrome numbers. A palindrome number is a number that reads the same forward or backward. For example 12321, 100001 and 1 are palindrome numbers, while 112 and 1021 are ...原创 2019-02-11 23:08:41 · 1853 阅读 · 0 评论 -
I
While swimming at the beach, Mike has accidentally dropped his cellphone into the water. There was no worry as he bought a cheap replacement phone with an old-fashioned keyboard. The keyboard has only...原创 2019-02-11 23:13:47 · 196 阅读 · 0 评论 -
E
You are given a positive decimal number x.Your task is to convert it to the “simple exponential notation”.Let x = a·10b, where 1 ≤ a < 10, then in general case the “simple exponential notation” l...原创 2019-02-17 22:13:00 · 107 阅读 · 0 评论 -
C语言实验——一元二次方程Ⅱ
Problem Description 求一元二次方程ax2+bx+c=0的解。a,b,c为任意实数。 Input 输入数据有一行,包括a b c的值。 Output 按以下格式输出方程的根x1和x2。x1和x2之间有一个空格。x1 x2(1)如果x1和x2为实根,则以x1>=x2输出。(2)如果方程是共轭复根,x1=m+...原创 2019-02-12 18:48:05 · 698 阅读 · 0 评论 -
进制转换
SubmitStatisticDiscuss Problem Description 输入一个十进制数N,将它转换成R进制数输出。 Input 输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(2<=R<=16, R != 10)。 Output 为每个测试实例输出转换后的数,每个输出...原创 2019-02-12 19:00:04 · 92 阅读 · 0 评论 -
H
According to rules of the Berland fashion, a jacket should be fastened by all the buttons except only one, but not necessarily it should be the last one. Also if the jacket has only one button, it sho...原创 2019-02-13 20:03:41 · 88 阅读 · 0 评论 -
G
One day Vasya was sitting on a not so interesting Maths lesson and making an origami from a rectangular a mm × b mm sheet of paper (a > b). Usually the first step in making an origami is making a...原创 2019-02-13 20:18:51 · 95 阅读 · 0 评论 -
E
Programmer Rostislav got seriously interested in the Link/Cut Tree data structure, which is based on Splay trees. Specifically, he is now studying the expose procedure.Unfortunately, Rostislav is una...原创 2019-02-13 20:42:50 · 114 阅读 · 0 评论 -
A
Limak is going to participate in a contest on the last day of the 2016. The contest will start at 20:00 and will last four hours, exactly until midnight. There will be n problems, sorted by difficulty...原创 2019-02-11 23:03:34 · 98 阅读 · 0 评论 -
月白瞳美的星沙
Problem Description日常中残留些许魔法,17岁的月白瞳美是魔法使一族的末裔,但她自幼就失去了色觉。今天她被留在店中看店,不巧的是这时一个老奶奶前来购买星沙但由于月白明美失去了色觉,她看到的星沙是这样的这可难坏了她,好在星沙都是有编号的。为了让月白明美能够快速的找到所需的星沙,月白明美希望你能帮她编写一个程序来帮助她,支持以下三种操作:L id:在柜子的最左边插入一...原创 2019-02-22 14:33:37 · 298 阅读 · 0 评论 -
H - The 3n+1 problem(25) UVA - 100
Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an algorithm whose...原创 2019-02-22 14:13:24 · 190 阅读 · 0 评论 -
D
Luba is surfing the Internet. She currently has n opened tabs in her browser, indexed from 1 to n from left to right. The mouse cursor is currently located at the pos-th tab. Luba needs to use the tab...原创 2019-02-05 21:15:52 · 107 阅读 · 0 评论 -
A
Theatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the city’s anniversary, a decision was taken to pave the Square with square granite...原创 2019-02-07 21:13:01 · 80 阅读 · 0 评论 -
G
This problem’s actual name, “Lexicographically Largest Palindromic Subsequence” is too long to fit into the page headline.You are given string s consisting of lowercase English letters only. Find its ...原创 2019-02-07 21:14:15 · 132 阅读 · 0 评论 -
I
On the planet Mars a year lasts exactly n days (there are no leap years on Mars). But Martians have the same weeks as earthlings — 5 work days and then 2 days off. Your task is to determine the minimu...原创 2019-02-07 21:15:52 · 125 阅读 · 0 评论 -
J
In late autumn evening n robots gathered in the cheerful company of friends. Each robot has a unique identifier — an integer from 1 to 109.At some moment, robots decided to play the game “Snowball”. ...原创 2019-02-08 15:40:57 · 3161 阅读 · 0 评论 -
codeforces A. Parity
A. Paritytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an integer nn(n≥0n≥0) represented with kkdigits in base (radix) bb. So,n...原创 2019-02-08 15:40:43 · 245 阅读 · 0 评论 -
A
Valera is a little boy. Yesterday he got a huge Math hometask at school, so Valera didn’t have enough time to properly learn the English alphabet for his English lesson. Unfortunately, the English tea...原创 2019-02-15 23:21:38 · 121 阅读 · 0 评论 -
HDU 5095
SVM(Support Vector Machine)is an important classification tool, which has a wide range of applications in cluster analysis, community division and so on. SVM The kernel functions used in SVM have many...原创 2019-02-15 23:22:44 · 107 阅读 · 0 评论 -
HDU 2710
To improve the organization of his farm, Farmer John labels each of his N (1 &lt;= N &lt;= 5,000) cows with a distinct serial number in the range 1…20,000. Unfortunately, he is unaware that the cows i...原创 2019-02-16 07:59:31 · 149 阅读 · 0 评论 -
CodeForces 404B
Valera takes part in the Berland Marathon. The marathon race starts at the stadium that can be represented on the plane as a square whose lower left corner is located at point with coordinates (0, 0) ...原创 2019-02-16 07:59:23 · 154 阅读 · 0 评论 -
E - 18岁生日(20) HDU - 1201
E - 18岁生日(20) HDU - 1201 Gardon的18岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,到达18岁生日时所经过的天数都是一样的呢?似乎并不全都是这样,所以他想请你帮忙计算一下他和他的几个朋友从出生到达18岁生日所经过的总天数,让他好来比较一下。Input一个数T,后面T行每行有一个日期,格式是YYYY-MM-DD。如我的生日是198...原创 2019-02-22 14:11:17 · 138 阅读 · 0 评论 -
I - Counting Squares HDU - 1264
Your input is a series of rectangles, one per line. Each rectangle is specified as two points(X,Y) that specify the opposite corners of a rectangle. All coordinates will be integers in the range 0 to...原创 2019-02-21 08:18:17 · 231 阅读 · 0 评论