codevs哈希水题
1230多重hash练习一下,不用也可以//// main.cpp// codeves1230//// Created by Candy on 9/29/16.// Copyright © 2016 Candy. All rights reserved.//#include <iost...
CCF 201312-1 出现次数最多的数 (水题)
问题描述给定n个正整数,找出它们中出现次数最多的数。如果这样的数有多个,请输出其中最小的一个。输入格式输入的第一行只有一个正整数n(1 ≤ n ≤ 1000),表示数字的个数。输入的第二行有n个整数s1, s2, …, sn (1 ≤ si ≤ 10000, 1 ≤ i ≤ n)。相邻的数用空格分隔...
【CodeForces 596A】E - 特别水的题5-Wilbur and Swimming Pool
DescriptionAfter making bad dives into swimming pools, Wilbur wants to build a swimming pool in the shape of a rectangle in his backyard. He has set u...
CodeForces 711A Bus to Udayland (水题)
题意:给定一个n*4的矩阵,然后O表示空座位,X表示已经有人了,问你是不能找到一对相邻的座位,都是空的,并且前两个是一对,后两个是一对。析:直接暴力找就行。代码如下:#pragma comment(linker, "/STACK:1024000000,1024000000")#include <...
Codeforces Round #353 (Div. 2) A. Infinite Sequence 水题
A. Infinite Sequence题目连接:http://www.codeforces.com/contest/675/problem/ADescriptionVasya likes everything infinite. Now he is studying the properties ...
Codeforces Round #146 (Div. 1) A. LCM Challenge 水题
A. LCM Challenge题目连接:http://www.codeforces.com/contest/235/problem/ADescriptionSome days ago, I learned the concept of LCM (least common multiple). I'...
Codeforces Round #335 (Div. 2) B. Testing Robots 水题
B. Testing RobotsTime Limit: 20 SecMemory Limit: 256 MB题目连接http://www.codeforces.com/contest/606/problem/BDescriptionThe Cybernetics Failures (CF) org...
Codeforces Round #188 (Div. 2) A. Even Odds 水题
A. Even OddsTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/318/problem/ADescriptionBeing a nonconformist, Volodya is displeas...
hdu 5742 It's All In The Mind 水题
It's All In The Mind题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=5742DescriptionProfessor Zhang has a number sequence a1,a2,...,an. However, the seq...
hdu-5718 Oracle(水题)
题目链接:OracleTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Problem DescriptionThere is once a king and queen, rul...
Codeforces Round #277 (Div. 2) A. Calculating Function 水题
A. Calculating FunctionTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/486/problem/ADescriptionFor a positive integer n let's ...
水题 Codeforces Round #303 (Div. 2) A. Toy Cars
题目传送门 /* 题意:5种情况对应对应第i或j辆车翻了没 水题:其实就看对角线的上半边就可以了,vis判断,可惜WA了一次 3: if both cars turned over during the collision. 是指i,j两辆车,而不是全部 */ #in...
Codeforces Round #303 (Div. 2) A. Toy Cars 水题
A. Toy Cars Time Limit: 20 Sec Memory Limit: 256 MB题目连接http://codeforces.com/contest/545/problem/ADescriptionLittle Susie, thanks to her older broth...
ytu 1985:C语言实验——保留字母(水题)
C语言实验——保留字母Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 136 Solved: 59[Submit][Status][Web Board]Description编一个程序,输入一个字符串,将组成字符串的所有非英文字母的字符删除后输出。Inp...
ytu 1998:C语言实验——删除指定字符(水题)
C语言实验——删除指定字符Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 327 Solved: 211[Submit][Status][Web Board]Description从键盘输入一个字符串给str和一个字符给c,删除str中的所有字符c并输出...
ytu 1301:Excel地址转换(水题,进制转换)
Excel地址转换Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 41 Solved: 11[Submit][Status][Web Board]DescriptionExcel是最常用的办公软件。每个单元格都有唯一的地址表示。比如:第12行第4列表示...
ytu 1304:串的简单处理(水题)
串的简单处理Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 39 Solved: 11[Submit][Status][Web Board]Description串的处理在实际的开发工作中,对字符串的处理是最常见的编程任务。本题目即是要求程序对用户输入...
codeforces 339C Xenia and Bit Operations(线段树水题)
转载请注明出处: http://www.cnblogs.com/fraud/ ——by fraudXenia and Bit OperationsXenia the beginner programmer has a sequence a, consisting of 2n non...
codeforces 655A A. Amity Assessment(水题)
题目链接:A. Amity Assessmenttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBessie the cow and her b...
CROC 2016 - Elimination Round (Rated Unofficial Edition) A. Amity Assessment 水题
A. Amity Assessment题目连接:http://www.codeforces.com/contest/655/problem/ADescriptionBessie the cow and her best friend Elsie each received a sliding puz...