
水水水题
文章平均质量分 66
圣诞老人家
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
青岛亚洲赛网络赛--1005(超级水)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5882Problem DescriptionRock-paper-scissors is a zero-sum hand game usually played between two people, in which each player simultaneously for原创 2016-09-18 10:43:39 · 491 阅读 · 0 评论 -
Gym - 100623E Enchanted Mirror
题意:给你四串字符,问你当1转化为3时,2能不能同时转化为4,交换规则是,i与j交换则n-i+1与n-j+1交换思路:把握一条就可以了,不管怎么换,一个字符i对应的那个字符n-i+1是不变的,ac代码:#include #include #include #include using namespacestd;char s1[105],s2[10原创 2017-04-05 09:12:40 · 575 阅读 · 0 评论 -
Gym 100623I Important Wires
题意:给你很多语句,然后让你用这些语句组成一条语句使其值为1,思路:说了这么多,其实是大水题i,只要输出一个语句或上这条语句的非,其他的随便怎样都行ac代码:#include #include #include using namespacestd;int main(){ freopen("important.in","r",stdin原创 2017-04-05 09:18:13 · 281 阅读 · 0 评论 -
HDU - 4618 H - Palindrome Sub-Array
A palindrome sequence is a sequence which is as same as its reversed order. For example, 1 2 3 2 1 is a palindrome sequence, but 1 2 3 2 2 is not. Given a 2-D array of N rows and M columns, your task原创 2017-04-06 18:20:02 · 383 阅读 · 0 评论 -
ZOJ - 2851
Some companies have special requirements for source code format, and it is also good for programmers to keep consistent code style. You are asked to write a simple code formatter for the company to he原创 2017-04-27 21:12:46 · 303 阅读 · 0 评论 -
Gym - 101350C
There are N kangaroos going out to eat at an Indian restaurant. Theith kangaroo wants to eatexactly xi food. The kangaroos all want to order the same size of plates, but each one can order more th原创 2017-04-27 21:23:42 · 545 阅读 · 0 评论 -
Convex hdu5979
We have a special convex that all points have the same distance to origin point.As you know we can get N segments after linking the origin point and the points on the convex. We can also get N ang原创 2017-06-04 17:57:40 · 464 阅读 · 0 评论 -
cf 808 A
Apart from having lots of holidays throughout the year, residents of Berland also have wholelucky years. Year is considered lucky if it has no more than 1 non-zero digit in its number. So years 10原创 2017-05-21 18:03:00 · 347 阅读 · 0 评论 -
hdu 5461 Largest Point
Given the sequence A A with n n integers t 1 ,t 2 ,⋯,t n t1,t2,⋯,tn. Given the integral coefficients a a and b b. The fact that select two elements t i ti and t j tj of A A an原创 2017-06-22 20:34:11 · 249 阅读 · 0 评论 -
hdu 6112
题目传送门:思路:三种情况2月29之前2月292月29之后ac代码:#include#includeusing namespace std;int ph(int x){ if(x%400==0||(x%4==0&&x%100!=0)) return 1; return 0;}int main(){ int n;原创 2017-08-14 09:47:56 · 293 阅读 · 0 评论 -
Gym - 100623C class
题意:在一个教室中老师按照学生的做的情况来确定出勤,确定规则是找到每一列的最大值然后找到每一行的最大值,然后取两者的最小值来衡量学生的出勤情况,现在给你出勤人数然后让你写出一种坐的方案,使老师计算的出勤最大思路:先确定最大情况的行列的人的个数然后把它们安排在第一行和第一列,然后剩下的随便填在其他位置,这种方案就可以了ac代码;#include #include #inc原创 2017-04-05 09:04:44 · 521 阅读 · 0 评论 -
ECNA2016ProblemC:TheKeytoCryptography 水题
Supposeyouneedtoencryptatopsecretmessagelike“SENDMOREMONKEYS". Youcoulduse a simple substitution cipher, where each letter in the alphabet is replaced with a different letter.However,theseciphersa原创 2017-03-26 16:55:40 · 697 阅读 · 0 评论 -
hdu--5878(hdu 5878 I Count Two Three (2016 ACM/ICPC Asia Regional Qingdao Online 1001))
题目大意:一种数=2^a*3^b*5^c*7^d原创 2016-09-18 13:59:13 · 410 阅读 · 0 评论 -
最长公共子序列和最长公共子串的区别
最长公共子序列可以不是连续的,而最长公共串必须是连续的例如 aabbcc和aabc的最长公共子序列是aabc,最长公共子串是aab原创 2017-02-07 00:44:17 · 646 阅读 · 0 评论 -
数据离散化
有些数据本身很大, 自身无法作为数组的下标保存对应的属性。如果这时只是需要这堆数据的相对属性, 那么可以对其进行离散化处理!离散化:当数据只与它们之间的相对大小有关,而与具体是多少无关时,可以进行离散化。例如9 1 0 5 4 与 5 2 1 4 3 的逆序对个数相同。设有4个数:1234567、123456789、12345678、123456排序原创 2017-02-21 23:47:08 · 537 阅读 · 0 评论 -
poj 3863 Business Center
International Cyber Police Corporation (ICPC) had built a new mega-tall business center to host itsheadquarters and to lease some space for extra profit. It has so many floors, that it is impractica原创 2017-04-07 19:17:19 · 626 阅读 · 0 评论 -
cf 785 水题
A - Anton and Polyhedrons Anton's favourite geometric figures are regular polyhedrons. Note that there are five kinds of regular polyhedrons:Tetrahedron. Tetrahedron has 4 triangular faces.Cub原创 2017-03-29 19:57:10 · 1166 阅读 · 0 评论 -
cf 785 C - Anton and Fairy Tale
Anton likes to listen to fairy tales, especially when Danik, Anton's best friend, tells them. Right now Danik tells Anton a fairy tale:"Once upon a time, there lived an emperor. He was very rich and原创 2017-03-29 20:13:21 · 493 阅读 · 0 评论 -
Gym - 101308H
Problem H. HeadshotInput file: headshot.inOutput file: headshot.outYou have a revolver gun with a cylinder that has n chambers. Chambers are located in a circle on acylinder. Each chamber can原创 2017-04-08 21:58:24 · 402 阅读 · 0 评论 -
- Hard Code
Some strange code is sent to Da Shan High School. It's said to be the prophet's note. The note is extremely hard to understand. However, Professor Meng is so smart that he successfully found the patte原创 2017-04-09 16:09:36 · 473 阅读 · 0 评论 -
Problem H. Holes
You may have seen a mechanic typewriter — such devices were widespread just 15 years ago, beforecomputers replaced them. It is a very simple thing. You strike a key on the typewriter keyboard, the原创 2017-03-30 23:56:20 · 598 阅读 · 0 评论 -
hdu 6186
Problem DescriptionLittle A has come to college and majored in Computer and Science.Today he has learned bit-operations in Algorithm Lessons, and he got a problem as homework.Here is the p原创 2017-09-14 08:15:01 · 428 阅读 · 0 评论