其他:模拟
文章平均质量分 87
其他:模拟
LSD20164388
如果你过几天就忘了,那么你并没有真正的掌握。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2019-2020 ICPC Southeastern European Regional Programming Contest (SEERC 2019) E. Life Transfer(大模拟)
传送门 题意 给你nnn,kkk表示nnn个人要出去玩,每辆车可以带kkk个人,再给你lc{l_c}lc,pc{p_c}pc,lm{l_m}lm,pm{p_m}pm分别表示开车需要达到的年龄,买一辆车的花费,骑摩托需要达到的年龄,买一辆摩托的花费(摩托不能载人,也就是一辆摩托只能一个人骑着去)。 接下来给你ttt,ddd,表示nnn个人之间可以互相转移年龄,每转移111岁花费为ttt,每个人最多转移ddd岁(一个人的年龄不能低于111岁),最后给你nnn个人的年龄ai{a_i}ai。 也就是说,原创 2020-11-14 12:55:31 · 548 阅读 · 0 评论 -
HDU 6224 (ICPC 沈阳 2017 H) Legends of the Three Kingdoms(记忆化搜索)
Legends of the Three Kingdoms Time Limit: 8000/4000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 928Accepted Submission(s): 148 Problem Description In the game of Three Kingdoms’ Legends, there are 4 players...原创 2020-06-08 22:06:29 · 664 阅读 · 0 评论 -
Codeforces Round #631 (Div. 2) - Thanks, Denis aramis Shitov! D. Dreamoon Likes Sequences(打表找规律)
D. Dreamoon Likes Sequences time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Dreamoon likes sequences very much. So he created a pr...原创 2020-04-05 21:14:18 · 587 阅读 · 0 评论 -
codeforces 1028C Rectangles(枚举)
C. Rectangles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given nn rectangles on a plane with coordinates of their bo...原创 2018-08-28 10:09:04 · 1074 阅读 · 0 评论 -
HDU 6444 Neko's loop(思维+长度不超过L的最大子段和)
Neko's loop Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 795 Accepted Submission(s): 144 Problem Description Neko has a loop of size...原创 2018-08-27 14:43:38 · 1013 阅读 · 5 评论 -
《ACM程序设计》书 训练题中的J题
题意很简单,就是输入字符串,把其中的每一位字母变成它的下一个字母,Z变成A。 思路是用字符数组把每一个字符ASCII码加一就行,Z直接变成A。 注意后面还要输出一个空行。 #include<iostream> #include<iomanip> #include<cmath> #include<string.h> using name...原创 2017-03-24 16:57:24 · 374 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第九场) F Typing practice(AC自动机+思维)
链接:https://www.nowcoder.com/acm/contest/147/F 来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 Niuniu is practicing typing. Given n words, Niuniu want to inpu...原创 2018-08-17 15:56:01 · 965 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第十场)J Rikka with Nickname(模拟)
链接:https://www.nowcoder.com/acm/contest/148/J 来源:牛客网 Rikka with Nickname 时间限制:C/C++ 2秒,其他语言4秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 Sometimes you may want to write a sentence...原创 2018-08-19 19:33:34 · 630 阅读 · 0 评论 -
HDU 6406 Taotao Picks Apples(贪心枚举+优化+小暴力)
Taotao Picks Apples Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 338 Accepted Submission(s): 87 Problem Description There is an ap...原创 2018-08-15 20:56:26 · 370 阅读 · 0 评论 -
牛客练习赛25 A 因数个数和
链接:https://www.nowcoder.com/acm/contest/158/A 来源:牛客网 因数个数和 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 q次询问,每次给一个x,问1到x的因数个数的和。 输入描述: 第一行一个正整数q ; 接下来q行,每行一个...原创 2018-08-25 08:50:27 · 451 阅读 · 0 评论 -
HDU 6438 Buy and Resell(贪心)
Buy and Resell Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 392 Accepted Submission(s): 92 Problem Description The Power Cube is use...原创 2018-08-25 20:55:51 · 839 阅读 · 0 评论 -
HDU 6446 Tree and Permutation(思维)
Tree and Permutation Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 284 Accepted Submission(s): 92 Problem Description There are N ver...原创 2018-08-25 21:42:48 · 613 阅读 · 0 评论 -
ACM-ICPC 2018 南京赛区网络预赛 B The writing on the wall(暴力)
Feeling hungry, a cute hamster decides to order some take-away food (like fried chicken for only 3030 Yuan). However, his owner CXY thinks that take-away food is unhealthy and expensive. So she deman...原创 2018-09-03 15:28:42 · 359 阅读 · 0 评论 -
Codeforces Round #527 (Div. 3) D1&D2(思维)
D2. Great Vova Wall (Version 2) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vova's family is building the Great Vova Wall (na...原创 2018-12-20 14:22:47 · 436 阅读 · 0 评论 -
HDU 4398 Template Library Management(优先队列)
Template Library Management Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1113Accepted Submission(s): 305 Problem Description As an ...原创 2019-04-12 11:22:18 · 340 阅读 · 0 评论 -
The 19th Zhejiang University Programming Contest Sponsored by TuSimple - C Robot Cleaner I (模拟)
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4092 题意: 给你一个n*m(n*m<=2000)的数字矩阵t,每个数字均为0,1,2其中之一.保证边界都是1 0表示该格子空 1表示该格子有墙 2表示该格子有一个垃圾 一个机器人从点(x,y)出发,最多进行k(k<=1e18)次操作。 ...原创 2019-04-15 20:38:09 · 512 阅读 · 2 评论 -
ZOJ 4021 Boolean Expression(模拟)
Boolean Expression Time Limit:1 Second Memory Limit:65536 KB Given a valid boolean expression consisting of seven types of characters 'T' (true), 'F' (false), '!' (not), '&' (and), '|' (o...原创 2019-04-27 08:58:32 · 951 阅读 · 0 评论 -
ZOJ 3954 Seven-Segment Display(思维)
Seven-Segment Display Time Limit:1 Second Memory Limit:65536 KB A seven segment display, or seven segment indicator, is a form of electronic display device for displaying decimal numerals tha...原创 2019-05-02 10:06:29 · 447 阅读 · 0 评论 -
HDU 5353 Average(贪心)
Average Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 3842 Accepted Submission(s): 888Special Judge Problem Description There are n...原创 2018-08-03 09:09:29 · 386 阅读 · 0 评论 -
HDU 6351 Beautiful Now(DFS)
Beautiful Now Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 750 Accepted Submission(s): 259 Problem Description Anton has a positiv...原创 2018-08-06 21:42:35 · 421 阅读 · 0 评论 -
“浪潮杯”第九届山东省ACM大学生程序设计竞赛 E-Sequence
时间限制:C/C++ 5秒,其他语言10秒空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld题目描述 We define an element in a sequence "good", if and only if there exists (1≤j<i) such that . Given a permutation p ...原创 2018-05-19 21:12:44 · 509 阅读 · 0 评论 -
Gym - 101778H Genta Game(暴力模拟)
H. Genta Gametime limit per test1.0 smemory limit per test256 MBinputstandard inputoutputstandard outputKojima Genta is one of the best friends of Conan, and the fattest one!Everyone believes that Gen...原创 2018-05-14 21:27:05 · 924 阅读 · 0 评论 -
UVA - 1520 Flights (简单数学题)
题意:有一个二维坐标平面,有n(n<=50000)个导弹会从x轴上某一点p[i]发射,轨迹为抛物线,最高点坐标为(x[i],y[i])。(i表示第i个导弹)(p,x,y<=50000)现在有m(m<=20000)架飞机要在这个二维平面上平行x轴飞行。每架飞机给两个数l,r(l,r<=n)表示这架飞机飞行的时候导弹l,l+1,...,r正在发射中。给定该飞机的飞行区间x0[j...原创 2018-06-16 09:22:55 · 476 阅读 · 0 评论 -
HDU 5308 I Wanna Become A 24-Point Master(打表+找规律)
I Wanna Become A 24-Point Master Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1679 Accepted Submission(s): 712 Special Judge Problem ...原创 2018-07-17 16:10:37 · 312 阅读 · 0 评论 -
HDU 5328 Problem Killer(暴力)
Problem Killer Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 3311 Accepted Submission(s): 1102 Problem Description You are a "Problem...原创 2018-07-24 20:04:18 · 297 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第四场)F Beautiful Garden(模拟)
链接:https://www.nowcoder.com/acm/contest/142/F 来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %lld 题目描述 There's a beautiful garden whose size is n x m in Chiaki's hous...原创 2018-07-28 20:34:56 · 380 阅读 · 0 评论 -
HDU 5288 OO’s Sequence(思维)
OO’s SequenceTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 4190 Accepted Submission(s): 1552Problem DescriptionOO has got a array A of si...原创 2018-07-15 15:28:52 · 262 阅读 · 0 评论 -
HDU 5289 Assignment(思维)
AssignmentTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 4775 Accepted Submission(s): 2218Problem DescriptionTom owns a company and he is th...原创 2018-07-15 16:41:34 · 233 阅读 · 0 评论 -
HDU 5301 Buildings(思维)
BuildingsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 3672 Accepted Submission(s): 1033Problem DescriptionYour current task is to make a...原创 2018-07-15 19:42:50 · 292 阅读 · 0 评论 -
HDU 5319 Painter(暴力)
Painter Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2463 Accepted Submission(s): 964 Problem Description Mr. Hdu is an painter, as ...原创 2018-07-21 10:01:07 · 290 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第二场)G transform(二分)
题意:有n个位置,每个位置的坐标为x[i],有桶a[i]个。你现在要把若干个桶移动到同一个位置,求在移动总距离不超过T/2的情况下,最多可以将多少个木桶移动到同一个位置?(n<=5e5,T<=1e18,x[i]<=1e9,a[i]<=1e5) 思路:二分。如官方题解所说,我们要使移动的总距离最小,那么最终被移动的桶在数轴上一定是一段连续的区间。如果固定了这个区间,那么最优...原创 2018-07-22 10:49:21 · 623 阅读 · 2 评论 -
Codeforces Round #499 (Div. 2)ABCDE比赛总结
只做了三道题,rank1100+,居然上了1分。。。分数太低了。。。 A:给你n个字母,挑m个不连续、不相同的字母,看能不能挑出来a——z权值为1——26,能挑出来就输出挑出来的总权值。 代码: #include<bits/stdc++.h> #define ll long long #define inf 0x3f3f3f3f using namespace std; con...原创 2018-07-27 09:55:47 · 496 阅读 · 0 评论 -
HDU 6370 Werewolf(思维+瞎搞)
Werewolf Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 770 Accepted Submission(s): 187 Problem Description "The Werewolves" is a po...原创 2018-08-09 09:03:19 · 406 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第七场)C Bit Compression(暴力)
链接:https://www.nowcoder.com/acm/contest/145/C 来源:牛客网 Bit Compression 时间限制:C/C++ 2秒,其他语言4秒 空间限制:C/C++ 262144K,其他语言524288K Special Judge, 64bit IO Format: %lld 题目描述 A binary string s of length N =...原创 2018-08-10 08:39:17 · 639 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第七场) J Sudoku Subrectangles(模拟)
链接:https://www.nowcoder.com/acm/contest/145/J 来源:牛客网 Sudoku Subrectangles 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K Special Judge, 64bit IO Format: %lld 题目描述 You have a n * m grid of cha...原创 2018-08-10 10:11:24 · 285 阅读 · 0 评论 -
HDU 6386 Age of Moyu(最短路变形)
Age of Moyu Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1531 Accepted Submission(s): 467 Problem Description Mr.Quin love fishes ...原创 2018-08-14 10:37:27 · 616 阅读 · 2 评论 -
HDU 6336 Problem E. Matrix from Arrays(找规律)
Problem E. Matrix from Arrays Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 530 Accepted Submission(s): 229 Problem Description Kaz...原创 2018-08-02 09:10:16 · 455 阅读 · 0 评论 -
CodeForces - 87B Vasya and Types(模拟)
B. Vasya and Typestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputProgrammer Vasya is studying a new programming language &K*. The &K* lan...原创 2018-05-10 19:41:53 · 346 阅读 · 0 评论
分享