![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
lrccccc
靡不有初 鲜克有终
展开
-
The Book List 2016北京网赛
The Book List时间限制:1000ms单点时限:1000ms内存限制:256MB描述The history of Peking University Library is as long as the history of Peking University. It was build in 1898. At the end of year 2015, it had about 11原创 2016-09-24 20:12:25 · 625 阅读 · 0 评论 -
HDU Ugly Problem 2016中国大学生程序设计竞赛(长春)-重现赛
Ugly ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 351 Accepted Submission(s): 132Special JudgeProblem DescriptionEveryone hates原创 2016-10-05 21:46:34 · 565 阅读 · 0 评论 -
51NOD 1418 放球游戏 模拟
1418 放球游戏题目来源: TopCoder基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 收藏 关注有N个球排成一排,每个球都是R、G、B三种颜色之一。现在想重新排列这一排球,你要重复以下过程N次:1)从原来的那排球中的最左侧取出一个球;2)将取出的求插入新的球排列的任意位置,即可以放在最左或最右端,也可以插入那排球的任意两个相邻球之间;3)计算原创 2016-12-03 18:51:51 · 392 阅读 · 0 评论 -
A Simple Job 2016北京网赛
A Simple Job时间限制:1000ms单点时限:1000ms内存限制:256MB描述Institute of Computational Linguistics (ICL), Peking University is an interdisciplinary institute of science and liberal arts, it focuses primarily on t原创 2016-09-24 20:35:06 · 511 阅读 · 0 评论 -
51NOD 1109 01组成的N的倍数
1109 01组成的N的倍数基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注给定一个自然数N,找出一个M,使得M > 0且M是N的倍数,并且M的10进制表示只包含0或1。求最小的M。例如:N = 4,M = 100。Input输入1个数N。(1 <= N <= 10^6)Output输出符合条件的最小的M。Input示例4Outpu原创 2017-02-07 22:40:20 · 522 阅读 · 0 评论 -
Codeforces 819B. Mister B and PR Shifts
B. Mister B and PR Shiftstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSome time ago Mister B detected a strange signal from the space, whic原创 2017-07-11 19:47:29 · 617 阅读 · 0 评论 -
HDU6215 Brute Force Sorting 【模拟】
传送门显然 当[l,r]被删除后,下一轮可能删除的位置必定是从l-1或r+1开始 每删除一个值,将其左右边的值放进队列,用一个数组标记是否被删除过,避免重复操作即可#include<stdio.h>#include<bits/stdc++.h>#define ll long long#define pii pair<int,int>#define pll pair<ll,ll>#defi原创 2017-09-19 23:26:46 · 537 阅读 · 0 评论