随笔分类 -  杂题(模拟,暴力)

摘要:Surprising Strings Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7403 Accepted: 4735 Description The D-pairs of a string of letters are the ordered pairs of letters that... 阅读全文
posted @ 2017-09-18 20:04 joeylee97 阅读(238) 评论(0) 推荐(0)
摘要:Suppose there are the symbols M, I, and U which can be combined to produce strings of symbols called "words". We start with one word MI, and transform 阅读全文
posted @ 2017-08-21 12:49 joeylee97 阅读(259) 评论(0) 推荐(0)
摘要:Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance. It orders two arms of negli 阅读全文
posted @ 2017-08-21 12:46 joeylee97 阅读(209) 评论(0) 推荐(0)
摘要:现有一笔经费可以报销一定额度的发票。允许报销的发票类型包括买图书(A类)、文具(B类)、差旅(C类),要求每张发票的总额不得超过1000元,每张发票上,单项物品的价值不得超过600元。现请你编写程序,在给出的一堆发票中找出可以报销的、不超过给定额度的最大报销额。 Input测试输入包含若干测试用例。 阅读全文
posted @ 2017-08-19 09:27 joeylee97 阅读(281) 评论(0) 推荐(0)
摘要:Jim has a balance and N weights. (1≤N≤20)(1≤N≤20) The balance can only tell whether things on different side are the same weight. Weights can be put o 阅读全文
posted @ 2017-08-19 09:22 joeylee97 阅读(199) 评论(0) 推荐(0)
摘要:bobo has a sequence a 1,a 2,…,a n. He is allowed to swap twoadjacent numbers for no more than k times. Find the minimum number of inversions after his 阅读全文
posted @ 2017-08-19 09:20 joeylee97 阅读(209) 评论(0) 推荐(0)
摘要:Given a number x, ask positive integer y≥2y≥2, that satisfy the following conditions: 1. The absolute value of y - x is minimal 2. To prime factors de 阅读全文
posted @ 2017-08-19 09:19 joeylee97 阅读(136) 评论(0) 推荐(0)
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limit per test 2 seconds time limit 阅读全文
posted @ 2017-08-08 11:15 joeylee97 阅读(409) 评论(0) 推荐(0)
摘要:Problem Description Holedox is a small animal which can be considered as one point. It lives in a straight pipe whose length is L. Holedox can only mo 阅读全文
posted @ 2017-08-05 10:49 joeylee97 阅读(258) 评论(0) 推荐(0)
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limit per test 2 seconds time limit 阅读全文
posted @ 2017-08-03 20:56 joeylee97 阅读(257) 评论(0) 推荐(0)
摘要:memory limit per test 512 megabytes input standard input output standard output memory limit per test 512 megabytes memory limit per test input standa 阅读全文
posted @ 2017-08-03 19:26 joeylee97 阅读(172) 评论(0) 推荐(0)
摘要:C. Hexadecimal's Numbers time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output One beautiful Jul 阅读全文
posted @ 2017-08-02 15:26 joeylee97 阅读(219) 评论(0) 推荐(0)
摘要:time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output time limit per test 1 second time limit p 阅读全文
posted @ 2017-08-02 15:24 joeylee97 阅读(247) 评论(0) 推荐(0)
摘要:1414 冰雕 题目来源: CodeForces 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 收藏 关注 1414 冰雕 题目来源: CodeForces 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 1414 冰雕 题目 阅读全文
posted @ 2017-06-05 18:06 joeylee97 阅读(137) 评论(0) 推荐(0)
摘要:1393 0和1相等串 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 收藏 关注 1393 0和1相等串 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 1393 0和1相等串 基准时间限制:1 秒 空间限制:131072 K 阅读全文
posted @ 2017-06-04 19:12 joeylee97 阅读(241) 评论(0) 推荐(0)
摘要:Subsequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14698 Accepted: 6205 Description A sequence of N positive integers (10 < N < 10 阅读全文
posted @ 2017-05-23 20:39 joeylee97 阅读(121) 评论(0) 推荐(0)
摘要:子序列 时间限制:3000 ms | 内存限制:65535 KB 难度:5 子序列 时间限制:3000 ms | 内存限制:65535 KB 难度:5 给定一个序列,请你求出该序列的一个连续的子序列,使原串中出现的所有元素皆在该子序列中出现过至少1次。 如2 8 8 8 1 1,所求子串就是2 8 阅读全文
posted @ 2017-05-22 21:38 joeylee97 阅读(269) 评论(0) 推荐(0)
摘要:1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 阅读全文
posted @ 2017-05-20 09:46 joeylee97 阅读(368) 评论(0) 推荐(0)
摘要:The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floor has 200 rooms each 阅读全文
posted @ 2017-04-16 11:40 joeylee97 阅读(136) 评论(0) 推荐(0)
摘要:Description In a modernized warehouse, robots are used to fetch the goods. Careful planning is needed to ensure that the robots reach their destinatio 阅读全文
posted @ 2017-04-03 11:21 joeylee97 阅读(154) 评论(0) 推荐(0)