- 博客(52)
- 资源 (3)
- 收藏
- 关注
原创 【题解】 Codeforces Round #552 (Div. 3)
目录ABCDA题意:给你4个不知道顺序的值,分别为(a+b)、(a+c)、(b+c)、(a+b+c) 你需要任意输出三个正整数 A B C解: 既然A B C都为正整数,那么a+b+c一定是最大的,排序输出即可/*** Copyright(c)* All rights reserved.* Author : Mingzhe* ...
2019-04-17 20:34:21
231
原创 【题解】 UVA 340 猜数字游戏的提示
目录 题目描述题意分析AC代码题目描述https://vj.e949.cn/ef72995afa0f802e4cfcb268592c3df3?v=1542412459题意分析题意:给出一行答案序列,再给出一系列猜测序列全为0时,猜测结束。 输出(位置正确数 , 在两个序列中出现过但位置不正确的个数)AC代码/*** Copyrig...
2018-11-18 14:11:23
296
原创 【题解】 UVA 401 回文词
目录 题目描述题意分析AC代码题目描述https://vj.e949.cn/9b33ac42e5fbc32e8c88307566611887?v=1541912899题意分析题意:给你一个字符串,让你判断它是不是回文/镜像串 AC代码/*** Copyright(c)* All rights reserved.* Author : Mingzhe...
2018-11-15 21:38:03
236
原创 【题解】UVA 10082 WERTYU
目录 题目描述题意分析AC代码题目描述https://vj.e949.cn/17da58ae1cdd5a22021b976e9544b652?v=1542269294题意分析题意:键盘输入误导致 右移一位,将其还原AC代码/*** Copyright(c)* All rights reserved.* Author : Mingzhe* Date ...
2018-11-15 21:25:14
220
原创 【题解】 UVA 272 TeX 中的引号
目录 题目描述题意分析AC代码题目描述https://vj.e949.cn/41e0e34d61d7191aed9fc036c8405496?v=1542228492题意分析题意: 将双引号替换AC代码#include <cstdio>#include <cmath>#include <iostream>#incl...
2018-11-15 21:19:35
283
原创 【题解】Codeforces Beta Round #1
目录 A. Theatre Square题目描述题意分析AC代码B. Spreadsheets题目描述题意分析AC代码A. Theatre Square题目描述http://codeforces.com/contest/1/problem/A题意分析题意: 有一个N*M的矩形,给你A*A的正方形,用正方形去填满矩形需要多少个?(可重叠) ...
2018-10-29 20:53:12
257
原创 【题解】UVA 1586
目录 题目描述题意分析AC代码题目描述An organic compound is any member of a large class of chemical compounds whose molecules contain carbon. The molar mass of an organic compound is the mass of one mole of...
2018-10-17 17:33:39
677
原创 【题解】UVA 1585
目录题目描述题意分析AC代码题目描述There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problem and an ‘X’ means a wrong answer. The score of each problem of this tes...
2018-10-17 16:46:47
643
2
原创 【题解】POJ 1852 Ants
目录 题目描述题意分析AC代码题目描述 Time limit Memory limit1000 ms 30000 kBAn army of ants walk on a horizontal po...
2018-10-10 20:20:06
268
转载 ACM算法
ACM 所有算法 数据结构 栈,队列,链表 哈希表,哈希数组 堆,优先队列 双端队列 可并堆 左偏堆 二叉查找树 Treap 伸展树 并查集 集合计数问题 二分图的识别 平衡二叉树 二叉排序树 线段树 一维线段树 二维线段树 树状...
2018-09-13 18:01:41
192
转载 Stanford CS
http://exploredegrees.stanford.edu/coursedescriptions/cs/CS 101. Introduction to Computing Principles. 3-5 Units.Introduces the essential ideas of computing: data representation, algorithms, prog...
2018-08-23 10:57:32
14115
1
原创 【题解】 UVA 11136
目录题目描述题意分析AC代码题目描述Each Mal-Wart supermarket has prepared a promotion scheme run by the following rules:• A client who wants to participate in the promotion (aka a sucker) must write down t...
2018-08-15 11:03:43
300
原创 【题解】 HDU 6182 A Math Problem
目录题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionYou are given a positive integer n, please count how many positive...
2018-08-14 15:05:20
261
原创 【题解】 Codeforces Round #503 B
目录题目描述题意分析AC代码题目描述Badgetime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputIn Summer Informatics School, if a student doe...
2018-08-13 10:02:08
166
原创 【题解】 Codeforces Round #503 A
目录 题目描述题意分析AC代码题目描述New Building for SIStime limit per test 1 secondmemory limit per test 256 megabytesinputstandard inputoutputstandard outputYou are looking at the floor pl...
2018-08-13 09:56:21
363
原创 【题解】 HDU 1711 Number Sequence
目录 题目描述题意分析AC代码题目描述Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], an...
2018-08-10 16:18:02
286
原创 【题解】 HDU 2191
目录 题目描述题意分析AC代码题目描述Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市...
2018-08-10 15:14:08
152
原创 【题解】 HDU 1028 Ignatius and the Princess III
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description"Well, it seems the first problem is too easy. I will let you k...
2018-08-10 11:34:02
227
原创 【题解】 HDU 1284 钱币兑换问题
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。Input每行只有一...
2018-08-10 11:24:08
250
原创 【题解】 HDU 1114 Piggy-Bank
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionBefore ACM can do anything, a budget must be prepared and the n...
2018-08-10 10:38:59
176
原创 【题解】 HDU 1248 寒冰王座
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description不死族的巫妖王发工资拉,死亡骑士拿到一张N元的钞票(记住,只有一张钞票),为了防止自己在战斗中频繁的死掉,他决定给自己买一些道...
2018-08-10 10:09:15
233
原创 【题解】 HDU 2211 杀人游戏
目录 题目描述题意分析AC代码题目描述Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description不知道你是否玩过杀人游戏,这里的杀人游戏可没有法官,警察之类的人,只有土匪,现在已知有N个土匪站在一排,每个土匪都有一个...
2018-08-09 20:32:45
323
原创 【题解】 CF Round #502 Div. 1 + Div. 2 B. The Bits
目录 题目描述题意分析AC代码题目描述time limit per test 2 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outputRudolf is on his way to the castle. Before gett...
2018-08-09 15:23:59
225
原创 【题解】 CF Round #502 Div. 1 + Div. 2 A.The Rank
目录 题目描述题意分析AC代码题目描述time limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputJohn Smith knows that his son, Thomas Smith, is ...
2018-08-09 15:15:48
376
原创 【题解】 HDU 2546 饭卡
目录 题目描述题意分析AC代码题目描述Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一...
2018-08-09 15:05:21
332
原创 【题解】 HDU 2083 简易版之最短距离
目录题目描述题意分析AC代码题目描述Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description寒假的时候,ACBOY要去拜访很多朋友,恰巧他所有朋友的家都处在坐标平面的X轴上。ACBOY可以任意选择一个朋友的家开始访问,但是每...
2018-08-08 20:48:09
225
原创 【题解】 HDU 1173 采矿
目录题目描述题意分析AC代码题目描述Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description某天gameboy玩魔兽RPG。有一个任务是在一个富含金矿的圆形小岛上建一个基地,以最快的速度采集完这个小岛上的所有金矿。这个小岛...
2018-08-08 20:34:54
249
原创 【题解】 HDU 2570 迷瘴
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description通过悬崖的yifenfei,又面临着幽谷的考验——幽谷周围瘴气弥漫,静的可怕,隐约可见地上堆满了骷髅。由于此处长年不见天日,...
2018-08-08 17:27:43
351
原创 【题解】 HDU 1492 The number of divisors(约数) about Humble Numbers
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a hu...
2018-08-08 09:21:25
219
原创 【题解】 HDU 1286 找新朋友
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description新年快到了,“猪头帮协会”准备搞一个聚会,已经知道现有会员N人,把会员从1到N编号,其中会长的号码是N号,凡是和会长是老朋友的...
2018-08-07 22:03:27
163
原创 【题解】 HDU 1257 最少拦截系统
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是...
2018-08-07 09:19:28
209
原创 【题解】 HDU 1950 Bridging signals
目录 题目描述题意分析AC代码题目描述Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description'Oh no, they've done it again', cries the chief designer at the...
2018-08-04 15:19:16
184
原创 【题解】 HDU 2602 Bone Collector
目录题目描述题意分析AC代码一维数组写法二维数组写法题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionMany years ago , in Teddy’s hometown there was a m...
2018-08-03 17:10:38
177
原创 【题解】 HDU 3572 SPY
目录 题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionThe National Intelligence Council of X Nation receives a piece ...
2018-08-03 10:57:46
377
原创 【题解】 HDU 5199 Gunner
目录 题目描述题意分析AC代码题目描述Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionLong long ago, there is a gunner whose name is Jack. He likes t...
2018-08-03 09:39:51
260
原创 【题解】HDU 1716 排列2
目录 题目描述题意分析AC代码题目描述Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionRay又对数字的列产生了兴趣:现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。I...
2018-08-03 09:06:17
197
原创 【题解】HDU 1027 Ignatius and the Princess II
目录题目描述题意分析AC代码题目描述Problem DescriptionNow our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But now the BEelzebub...
2018-08-02 21:49:04
137
原创 【题解】HDU 5774 Where Amazing Happens
目录题目描述题意分析AC代码 题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536...
2018-08-02 20:44:13
159
原创 【题解】HDU 1280 前m大的数
目录题目描述题意分析AC代码题目描述Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description还记得Gardon给小希布置的那个作业么?(上次比赛的1005)其实小希已经找回了原来的那张数表,现在她想确认一下她的答案是否正确,...
2018-08-02 20:00:05
157
原创 【题解】HDU 1075 What Are You Talking About
题目描述目录题目描述题意分析AC代码Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/204800 K (Java/Others)Problem DescriptionIgnatius is so lucky that he met a Martian yesterday. But he di...
2018-08-02 17:19:14
152
Combinatorics and Graph Theory
2018-12-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人