模拟
文章平均质量分 74
nike0good
这个作者很懒,什么都没留下…
展开
-
CF 1557D(Ezzat and Grid-线段覆盖)
一个n∗mn*mn∗m的01矩阵,初始为全0。有m个条件(i,j,k)(i,j,k)(i,j,k),表示把第iii行[j,k][j,k][j,k]列设为1。问至少删除几列,使对任意相邻行,至少存在一列,其值均为111原创 2021-08-19 18:09:41 · 124 阅读 · 0 评论 -
Vijos P1844(积木大赛-贪心)
P1844积木大赛Accepted标签:NOIP提高组2013描述春春幼儿园举办了一年一度的“积木大赛”。今年比赛的内容是搭建一座宽度为 n 的大厦,大厦可以看成由 n 块宽度为1的积木组成,第原创 2013-11-18 16:33:55 · 2715 阅读 · 0 评论 -
Ural 1971(Graphics Settings-延迟计算)
1971. Graphics SettingsTime limit: 2.0 secondMemory limit: 64 MB给定n个选项,m个操作,问the image generation speed=p/(W*H*∏ki(第i个选项开启))在哪个区间。Input第一行为 n (0 ≤ n ≤ 100 000). 接下来第i行分别有指令名 si,原创 2014-07-01 15:38:35 · 1208 阅读 · 0 评论 -
CF 510A(Fox And Snake-模拟)
A. Fox And Snaketime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel starts to learn programming. The原创 2015-02-03 14:54:13 · 1382 阅读 · 0 评论 -
CF 509A(Maximum in Table-暴力)
A. Maximum in Tabletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn n × n table a is defined as follows:原创 2015-02-03 14:46:15 · 1393 阅读 · 0 评论 -
hiho 挑战赛7(正则表达式-栈)
题目1 : 正则表达式时间限制:1000ms单点时限:1000ms内存限制:256MB描述给定一个字符串,判断其是否为合法的正则表达式。 一个正则表达式定义为: 1:0是正则表达式,1也是正则表达式。 2:P和Q都是正则表达式,则PQ是正则表达式。 3:P是正则表达式,则(P)是正则表达式 4:P是正则表达式,则P*也原创 2015-01-19 14:34:10 · 1552 阅读 · 0 评论 -
BestCoder Round #33(zhx's submissions-手速题,注意判断00和0的情况)
zhx's submissionsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1459 Accepted Submission(s): 232问题描述作为史上最强的刷子之一,zhx在各大oj上交了很原创 2015-03-15 14:41:24 · 1028 阅读 · 0 评论 -
CF 525A(Vitaliy and Pie-模拟)
A. Vitaliy and Pietime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter a hard day Vitaly got very hungry原创 2015-03-27 17:15:42 · 1184 阅读 · 0 评论 -
hiho 1228(Mission Impossible 6-模拟文本编辑器)
没有什么算法,注意各种特殊情况#include <iostream>#include <cmath>#include <algorithm>#include <cstdio>#include <cstring>#include <string>#include <vector>#include <map>#include <functional>#include <cstdlib>原创 2015-12-20 01:34:53 · 919 阅读 · 0 评论 -
CF 342B(Xenia and Spies-模拟)
B. Xenia and Spiestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputXenia the vigorous detective faced n (n原创 2013-09-07 19:53:15 · 1711 阅读 · 0 评论 -
Yandex 2013Q(Atoms: There and Back Again-贪心+模拟+List)
Atoms: There and Back AgainTime limit2 secondsMemory limit256MbInputstdinOutputstdoutLegendYura and Roman got bored with the origi原创 2013-07-25 21:07:03 · 1485 阅读 · 0 评论 -
POJ 1008(模拟)
最后一天特判Program P1008;var n,i,j1,j2,j,day,month,year:longint; daytotal,tday,tmonth,tyear:longint; s,s1:string; mon:array[1..19] of string=('pop','no','zip','zotz','tzec','xul','yoxkin原创 2012-08-13 15:42:44 · 1174 阅读 · 0 评论 -
POJ 2190(模拟策略)
Language:DefaultISBNTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 13962 Accepted: 4898DescriptionISBN码满足:(10*A1+9*A2+..+1*A10) mod 11=0A10是效原创 2012-11-15 17:44:52 · 723 阅读 · 0 评论 -
Tyvj P2068(寻宝)
P2068 - [NOIP2012P2]寻宝From luchangzhou Normal (OI)总时限:10s 内存限制:128MB 代码长度限制:64KB背景 BackgroundNOIP 2012 普及组 题2描述 Description传说很遥远的藏宝楼顶层藏着诱人的宝藏。小明历尽千辛万苦终原创 2012-11-20 22:28:18 · 1195 阅读 · 0 评论 -
CF 254A(重复的数)
A. 数字卡片time limit per test1 secondmemory limit per test256 megabytesinputinput.txtoutputoutput.txt有2n张卡片编号为1 .. 2n.卡片数字相同可凑成一对,能否凑完?Input第一行1个整数n (1原创 2012-12-09 22:21:23 · 1200 阅读 · 0 评论 -
CF 265A(彩石简化版)
A. Colorful Stones (Simplified Edition)time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output有一排彩色的石头,用字符串 s 表示,原创 2013-01-20 23:33:42 · 1441 阅读 · 0 评论 -
CF 265B(行道树简化版)
B. Roadside Trees (Simplified Edition)time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output 从西向东有 n 棵树,编号 1 到 n原创 2013-01-20 23:45:28 · 1437 阅读 · 0 评论 -
CF 286B(Shifting-deque)
B. Shiftingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputJohn Doe has found the beautiful permutation fo原创 2013-03-24 13:43:03 · 1528 阅读 · 0 评论 -
CF 314A(Sereja and Contest-这题题目索性没看懂,E文是硬伤)
C. Sereja and Contesttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDuring the last Sereja's Codesecrof r原创 2013-06-08 11:10:05 · 1778 阅读 · 0 评论 -
POJ 1068(找规律)
(+1;(-1,用sum表示当前的值,当sum>=1时,w[i]=i-j+1;( j 表示最后加的一段的右边结点的序数)Program P1068;Var t,i,j,n:longint; p:array[0..20] of longint;function w:longint;var j,sum:longint;begin if p[i]-p[i-原创 2012-08-10 09:59:55 · 1585 阅读 · 0 评论