随笔分类 -  map

摘要:time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Kostya is a genial sculptor, he has ... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(173) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output There are n pearls in a row. Let’s e... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(119) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output First-rate specialists graduate from ... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(151) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Two bored soldiers are playing card ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(283) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Santa Claus likes palindromes very m... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(111) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Santa Claus decided to disassemble h... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(174) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Hongcow is learning to spell! One da... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(259) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Kyoya Ootori is selling photobooks o... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(245) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output There are some beautiful girls in Arp... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(175) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 128 MB【问题描述】有一个很长的由小写字母组成字符串。为了便于对这个字符串进行分析,需要将它划分成若干个部分,每个部分称为一个单词。 出于减少分析量的目的,我们希望划分出的单词数越少越好。你就是来完成这一划分工... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(514) 评论(0) 推荐(0)
摘要:【题目链接】:http://acm.hdu.edu.cn/showproblem.php?pid=6019【题意】 每次选择一段连续的段,使得这一段里面没有重复的元素; 问你最少选多少次; 【题解】 从第一个元素开始一直选就好; 不能选了就把之前的记忆清除掉; 然后重新开始选;重... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(227) 评论(0) 推荐(0)
摘要:【题目链接】:http://hihocoder.com/problemset/problem/1494【题意】 【题解】 显然只要记住每一行的各个砖头的间隔处的坐标有多少个就好了; ->也就对应了从这个地方画一条竖线上去,能少碰到多少个砖头; 取少碰到的砖头数的最大值; 然后用N减... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(80) 评论(0) 推荐(0)
摘要:【题目链接】:https://leetcode.com/contest/leetcode-weekly-contest-26/problems/split-array-with-equal-sum/【题意】 让你把一段序列去掉3个元素,然后分成4个部分; 要求这4个部分的和相同; ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(139) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 32 MB【问题描述】给定一个含有N个元素的序列A,你的任务就是求出序列A的最小覆盖子串的长度。本题中的一些定义:串S,是由零个或多个元素组成的序列,其下标从1开始计数。Si 表示串 S 中第 i 个位置的元素值,... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(251) 评论(0) 推荐(0)
摘要:【题目链接】:http://codeforces.com/contest/785【题意】 给你各种形状的物体; 然后让你计算总的面数; 【题解】 用map来记录各种物体本该有的面数; 读入各种物体; 然后累加各种物体的面数; 然后输出就好; 【完整代码】#include usi... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(146) 评论(0) 推荐(0)
摘要:【题目链接】:http://codeforces.com/contest/782【题意】 每个队名有两种选择, 然后第一个选择队名相同的那些队只能选第二种; 让你安排队名 【题解】 首先全都选成第一种队名; 然后第一种队名相同的队,它们只能全都变成选第二种队名的了; 这个时候如果... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(247) 评论(0) 推荐(0)
摘要:【题目链接】:http://codeforces.com/contest/776/problem/C【题意】 让你找区间[i,j] 使得sum[i..j]=k^t,这里t=0,1,2,3.. -10=0,t=1,2,3... 前缀和 pre[i]-pre[j] =k^t... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(157) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 64 MB【问题描述】某星球上有很多计量系统,之间的计量单位的转换很繁琐。希望你能编程解决这个问题。 现有N (1 #include #include #include #include #include usin... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(342) 评论(0) 推荐(0)
摘要:time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mahmoud wants to write a new diction... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(169) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 128 MB【问题描述】要求Xi(i = 1,2,3,4)是一个[-T..T]中的整数,满足方程AX1 + BX2 + CX3 + DX4 = P的解有多少组? 【输入格式】六个整数分别表示P、T、A、B、C、D... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(268) 评论(0) 推荐(0)