• 蓝桥杯 算法训练 区间k大数查询(水题)

    时间:2023-12-12 18:48:26

    算法训练 区间k大数查询时间限制:1.0s   内存限制:256.0MB问题描述给定一个序列,每次询问序列中第l个数到第r个数中第K大的数是哪个。输入格式第一行包含一个数n,表示序列长度。第二行包含n个正整数,表示给定的序列。第三个包含一个正整数m,表示询问个数。接下来m行,每行三个数l,r,K,表...

  • [ACM_水题] ZOJ 3712 [Hard to Play 300 100 50 最大最小]

    时间:2023-12-10 14:31:16

    MightyHorse is playing a music game called osu!.After playing for several months, MightyHorse discovered the way of calculating score in osu!:1. While...

  • BZOJ 1192: [HNOI2006]鬼谷子的钱袋(新生必做的水题)

    时间:2023-12-10 08:35:37

    1192: [HNOI2006]鬼谷子的钱袋Time Limit: 10 Sec  Memory Limit: 162 MBSubmit: 3557  Solved: 2596[Submit][Status][Discuss]Description鬼谷子非常聪明,正因为这样,他非常繁忙,经常有各诸侯...

  • Codeforces Gym 100513F F. Ilya Muromets 水题

    时间:2023-12-03 20:56:27

    F. Ilya MurometsTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100513/problem/FDescriptionIIlya Muromets is a legendary bogatyr. ...

  • Poj 1316 Self Numbers(水题)

    时间:2023-12-02 21:52:50

    一、DescriptionIn 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n)...

  • codeforces Ebony and Ivory(水题)

    时间:2023-12-01 12:59:06

    A. Ebony and Ivorytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDante is engaged in a fight wi...

  • POJ 2342 &&HDU 1520 Anniversary party 树形DP 水题

    时间:2023-12-01 11:29:29

    一个公司的职员是分级制度的,所有员工刚好是一个树形结构,现在公司要举办一个聚会,邀请部分职员来参加。要求:1.为了聚会有趣,若邀请了一个职员,则该职员的直接上级(即父节点)和直接下级(即儿子节点)都不能被邀请2.每一个员工都有一个兴奋值,在满足1的条件下,要使得邀请来的员工的兴奋值最高输出最高的兴奋...

  • PAT甲题题解-1120. Friend Numbers (20)-水题

    时间:2023-11-28 19:58:02

    博主欢迎转载,但请给出本文链接,我尊重你,你尊重我,谢谢~http://www.cnblogs.com/chenxiwenruo/p/6789775.html特别不喜欢那些随便转载别人的原创文章又不给出链接的所以不准偷偷复制博主的博客噢~~水题,就是统计n个数的数位和有多少个不同的,并且输出即可。#...

  • codevs哈希水题

    时间:2023-11-28 13:34:52

    1230多重hash练习一下,不用也可以//// main.cpp// codeves1230//// Created by Candy on 9/29/16.// Copyright © 2016 Candy. All rights reserved.//#include <iost...

  • CCF 201312-1 出现次数最多的数 (水题)

    时间:2023-11-27 20:37:10

    问题描述给定n个正整数,找出它们中出现次数最多的数。如果这样的数有多个,请输出其中最小的一个。输入格式输入的第一行只有一个正整数n(1 ≤ n ≤ 1000),表示数字的个数。输入的第二行有n个整数s1, s2, …, sn (1 ≤ si ≤ 10000, 1 ≤ i ≤ n)。相邻的数用空格分隔...

  • 【CodeForces 596A】E - 特别水的题5-Wilbur and Swimming Pool

    时间:2023-11-27 19:46:28

    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 (水题)

    时间:2023-11-25 19:54:20

    题意:给定一个n*4的矩阵,然后O表示空座位,X表示已经有人了,问你是不能找到一对相邻的座位,都是空的,并且前两个是一对,后两个是一对。析:直接暴力找就行。代码如下:#pragma comment(linker, "/STACK:1024000000,1024000000")#include <...

  • Codeforces Round #353 (Div. 2) A. Infinite Sequence 水题

    时间:2023-11-23 21:07:13

    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 水题

    时间:2023-11-23 21:01:02

    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 水题

    时间:2023-11-23 20:54:33

    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 水题

    时间:2023-11-23 20:49:23

    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 水题

    时间:2023-11-22 12:52:34

    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(水题)

    时间:2023-11-18 17:15:03

    题目链接: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 水题

    时间:2023-11-17 23:01:15

    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

    时间:2023-11-16 08:24:06

    题目传送门 /* 题意:5种情况对应对应第i或j辆车翻了没 水题:其实就看对角线的上半边就可以了,vis判断,可惜WA了一次 3: if both cars turned over during the collision. 是指i,j两辆车,而不是全部 */ #in...