• 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...

  • Codeforces Round #303 (Div. 2) A. Toy Cars 水题

    时间:2023-11-16 08:02:12

     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语言实验——保留字母(水题)

    时间:2023-11-14 18:46:07

    C语言实验——保留字母Time Limit: 1 Sec  Memory Limit: 64 MBSubmit: 136  Solved: 59[Submit][Status][Web Board]Description编一个程序,输入一个字符串,将组成字符串的所有非英文字母的字符删除后输出。Inp...

  • ytu 1998:C语言实验——删除指定字符(水题)

    时间:2023-11-14 18:40:56

    C语言实验——删除指定字符Time Limit: 1 Sec  Memory Limit: 64 MBSubmit: 327  Solved: 211[Submit][Status][Web Board]Description从键盘输入一个字符串给str和一个字符给c,删除str中的所有字符c并输出...

  • ytu 1301:Excel地址转换(水题,进制转换)

    时间:2023-11-14 18:39:03

    Excel地址转换Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 41  Solved: 11[Submit][Status][Web Board]DescriptionExcel是最常用的办公软件。每个单元格都有唯一的地址表示。比如:第12行第4列表示...

  • ytu 1304:串的简单处理(水题)

    时间:2023-11-14 18:26:46

    串的简单处理Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 39  Solved: 11[Submit][Status][Web Board]Description串的处理在实际的开发工作中,对字符串的处理是最常见的编程任务。本题目即是要求程序对用户输入...