![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水题
qq_37383726
这个作者很懒,什么都没留下…
展开
-
独木舟上的旅行【贪心】
独木舟上的旅行时间限制:3000 ms | 内存限制:65535 KB难度:2描述进行一次独木舟的旅行活动,独木舟可以在港口租到,并且之间没有区别。一条独木舟最多只能乘坐两个人,且乘客的总重量不能超过独木舟的最大承载量。我们要尽量减少这次活动中的花销,所以要找出可以安置所有旅客的最少的独木舟条数。现在请写一个程序,读入独木舟的最大承载量、旅客数目和每位旅原创 2017-03-02 14:04:29 · 279 阅读 · 0 评论 -
Tricky Sum
Tricky Sum 求和是一种最常见的运算,我们经常做的就是1加到n的和。例如,1加到100的和是5050。但是现在,我们稍微变动一下求和方法,对于属于2的幂次的数,我们做的是减法,其余仍旧做加法。例如,当n=4的时候,最后的结果应该是-1-2+3-4=-4,因为1、2、4分别是2的0次方、2的1次方、2的2次方。现在请你来计算t次这样的运算。Input 输入第一行是一个正整数t,表示要进行原创 2017-04-13 20:54:50 · 278 阅读 · 0 评论 -
Bungee Jumping 【物理 机械能守恒】
Bungee Jumping Once again, James Bond is fleeing from some evil people who want to see him dead. Fortunately, he has left a bungee rope on a nearby highway bridge which he can use to escape from his原创 2017-04-13 21:22:54 · 397 阅读 · 0 评论 -
HPU2017-2016级暑期集训练习赛 【题解】
赛后分析,前半段心不静,心态有点乱,导致简单题一直wa。后半段才逐渐调整回来。 再一次感觉到心态很重要【ps 没事别看rank】A 题 利息计算 分析, 题目信息好乱,但是看过的人很多,就想了肯定很简单,就按照最简单的写了。(其实题目把公式都说了,带公式就可以了) 代码#include<cstdio>#include<algorithm>#include<math.h>#inclu原创 2017-07-22 14:38:16 · 591 阅读 · 0 评论 -
51 node 基础题
2006 飞行员配对 二分匹配裸题,匈牙利算法。 代码#include<bits/stdc++.h>#define LL long longusing namespace std;const int MAXN =200+10;const int MAXM =1e8;int mp[MAXN][MAXN];int pipei[MAXN];bool vis[MAXN];int n,m原创 2017-07-24 00:00:11 · 338 阅读 · 0 评论 -
【51Nod】1085 - 背包问题【01背包】
1085 背包问题 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 在N件物品取出若干件放在容量为W的背包里,每件物品的体积为W1,W2……Wn(Wi为整数),与之相对应的价值为P1,P2……Pn(Pi为整数)。求背包能够容纳的最大价值。 Input 第1行,2个整数,N和W中间用空格隔开。N为物品的数量,W为背包的容量。(1 <= N <=原创 2017-08-02 10:42:56 · 191 阅读 · 0 评论 -
Replace To Make Regular Bracket Sequence 【栈】
You are given string s consists of opening and closing brackets of four kinds <>, {}, [], (). There are two types of brackets: opening and closing. You can replace any bracket by another of the same ty原创 2017-07-25 21:01:21 · 216 阅读 · 0 评论 -
Array 【思维】水
Vitaly has an array of n distinct integers. Vitaly wants to divide this array into three non-empty sets so as the following conditions hold:The product of all numbers in the first set is less than zero原创 2017-07-25 21:05:07 · 274 阅读 · 0 评论 -
0和5 【思维+数学】
小K手中有n张牌,每张牌上有一个一位数的数,这个字数不是0就是5。小K从这些牌在抽出任意张(不能抽0张),排成一行这样就组成了一个数。使得这个数尽可能大,而且可以被90整除。注意:1.这个数没有前导0,2.小K不需要使用所有的牌。Input 每个测试数据输入共2行。 第一行给出一个n,表示n张牌。(1<=n<=1000) 第二行给出n个整数a00,a11,a22,…,an−1n−1 (ai原创 2017-07-25 21:19:44 · 334 阅读 · 0 评论 -
【ZZULIOJ 】 几道水题
1 数独 Description数独(すうどく,Sudoku)是一种运用纸、笔进行演算的逻辑游戏。玩家需要根据9×9盘面上的已知数字,推理出所有剩余空格的数字,并满足每一行、每一列内的数字均含1-9,不重复。 小明很喜欢玩数独这个游戏,但是又觉得每次去检查数独是否合法很麻烦。所以他希望大家帮他写一个判断数独的程序。 Input首先输入一个整数T,表示接下来有T个测试实例。 每个实例是一个原创 2017-08-06 20:31:10 · 1172 阅读 · 0 评论 -
【CodeForces - 879】 A B C【构造+思维】
A - Borya’s Diagnosis It seems that Borya is seriously sick. He is going visit n doctors to find out the exact diagnosis. Each of the doctors needs the information about all previous visits, so Borya原创 2017-10-27 14:42:31 · 730 阅读 · 0 评论 -
Bulbs 【模拟】or 【set】
Bulbs Vasya wants to turn on Christmas lights consisting of m bulbs. Initially, all bulbs are turned off. There are n buttons, each of them is connected to some set of bulbs. Vasya can press any of t原创 2017-04-13 20:28:52 · 239 阅读 · 0 评论 -
Elections 【结构体】
Elections The country of Byalechinsk is running elections involving n candidates. The country consists of m cities. We know how many people in each city voted for each candidate.The electoral system i原创 2017-04-03 15:32:44 · 355 阅读 · 0 评论 -
Two Bags of Bread
Two Bags of Bread时间限制: 5 Sec 内存限制: 128 MB题目描述Lialosiu喜欢吃男饭面包店的面包,曾经创下一天吃15袋面包的记录。校庆那天,Lialosiu又去买了两袋面包,第一袋有x(x>=1)个面包,第二袋有y(y>=1)个面包。他是一个很粗心的人,以至于他把第一袋面包弄丢了。幸好他记得两袋面包的总个数是不会超过n的,并且他也原创 2017-03-03 22:38:52 · 787 阅读 · 0 评论 -
车牌号
车牌号时间限制:3000 ms | 内存限制:65535 KB难度:1描述茵茵很喜欢研究车牌号码,从车牌号码上可以看出号码注册的早晚,据研究发现,车牌号码是按字典序发放的,现在她收集了很多车牌号码,请你设计程序帮她判断注册较早的号码。车牌号码由5个字母或数字组成输入第一行是n,代表有n组数据,第二行是m,以下m行是m个车牌号码其中n输出输出注原创 2017-02-25 11:28:11 · 380 阅读 · 0 评论 -
Coin Test
Coin Test时间限制:3000 ms | 内存限制:65535 KB难度:1描述As is known to all,if you throw a coin up and let it droped on the desk there are usually three results. Yes,just believe what I say ~i原创 2017-02-25 12:19:42 · 221 阅读 · 0 评论 -
The MAX
Time limit2000 msMemory limit32768 kBOSWindowsGiving N integers, V1, V2,,,,Vn, you should find the biggest value of F.InputEach test case contains a single integer N (1OutputFor each t原创 2017-02-25 21:08:57 · 245 阅读 · 0 评论 -
A+B
A + B ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 643625 Accepted Submission(s): 200891Problem DescriptionCalculate A原创 2017-02-25 21:19:42 · 187 阅读 · 0 评论 -
Sum Problem
Sum ProblemTime Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 458349 Accepted Submission(s): 115500Problem DescriptionHey, welcome to原创 2017-02-25 21:25:53 · 353 阅读 · 0 评论 -
Let the Balloon Rise
Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 115847 Accepted Submission(s): 45385Problem DescriptionContes原创 2017-02-26 09:26:18 · 159 阅读 · 0 评论 -
奇怪的排序
奇怪的排序时间限制:1000 ms | 内存限制:65535 KB难度:1描述最近,Dr. Kong 新设计一个机器人Bill.这台机器人很聪明,会做许多事情。惟独对自然数的理解与人类不一样,它是从右往左读数.比如,它看到123时,会理解成321.让它比较23与15哪一个大,它说15大。原因是它的大脑会以为是32与51在进行比较.再比如让它比较29与30,原创 2017-02-26 13:49:13 · 263 阅读 · 0 评论 -
问题 B: Divisible 【模运算】【HPU第一次积分赛】
问题 B: Divisible时间限制: 1 Sec 内存限制: 128 MB 给定一个很大的整数,我想知道它能否被9整除。输入有t组测试数据,每组数据给定一个整数N不存在前导0。(1 输出对每组测试数据,若N可以被9整除,输出1,反之输出0。样例输入31111111111111111111111111111116原创 2017-03-05 19:08:31 · 220 阅读 · 0 评论 -
三足鼎立 【水题】
三足鼎立Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4025 Accepted Submission(s): 2296Problem Description MCA山中人才辈出,洞悉外界战火纷纷,山中各路豪杰决定出山拯救百姓于原创 2017-03-29 13:12:04 · 667 阅读 · 0 评论 -
【哈尔滨理工大学第七届程序设计竞赛初赛(低年级组)】A B C D E F H I
A 蓝廋、香菇//package FirstTime;import java.util.*;import java.math.*;import java.text.DecimalFormat;public class Main{ public static void main(String[] agrs){ Scanner cin = new Scanner(Syste原创 2017-12-14 23:00:32 · 356 阅读 · 0 评论