模拟
say_c_box
小白不能不努力~
展开
-
ZOJ3844——Easy Task 模拟
原题如下:DescriptionYou are given n integers. Your task is very easy. You should find the maximum integer a and the minimum integer b among these nintegers. And then you should replace both a原创 2016-03-16 21:45:41 · 418 阅读 · 0 评论 -
codeforces 792B——Counting-out Rhyme(数组模拟链表)
B. Counting-out Rhymetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputn children are standing in a circle an原创 2017-03-29 22:22:01 · 445 阅读 · 0 评论 -
codeforces 792D——Paths in a Complete Binary Tree(二叉树,数学)
D. Paths in a Complete Binary Treetime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputT is a complete binary t原创 2017-03-29 22:34:05 · 759 阅读 · 0 评论 -
codeforces 804B——Minimum number of steps(模拟,贪心)
B. Minimum number of stepstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe have a string of letters 'a' a原创 2017-05-05 18:42:30 · 424 阅读 · 0 评论 -
codecodefor 808A——Lucky Year
A. Lucky Yeartime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputApart from having lots of holidays throughout原创 2017-05-16 08:15:03 · 724 阅读 · 0 评论 -
codeforces 808B——Average Sleep Time
B. Average Sleep Timetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt's been almost a week since Polycarp原创 2017-05-16 08:17:22 · 1340 阅读 · 0 评论 -
codeforces 808C——Tea Party(贪心)
C. Tea Partytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp invited all his friends to the tea par原创 2017-05-16 08:21:53 · 1238 阅读 · 0 评论 -
codeforces Gym - 101190A——Abbreviation
http://codeforces.com/gym/101190/attachments恶心的模拟题,队友写的代码。#include#include#includeusing namespace std;string inn,out,wrd,cu1,cu2;int co1,co2;bool jup(char c){ if('A'<=c&&c<='Z') re原创 2017-07-23 22:08:56 · 774 阅读 · 0 评论 -
codeforces Gym - 101190H——Hard Refactoring (模拟)
简单区间并#include<iostream>#include<string>#include<cstdio>#include<algorithm>using namespace std;const int max_n=1005;pair<int,int> pa[max_n];string s;int a,b;const int high=32767;const int low=原创 2017-07-23 22:33:11 · 527 阅读 · 0 评论 -
codeforces Gym - 101190J ——Jenga Boom(模拟)
一个由1*w*nw的积木构成的长方体,每次抽掉一块,问啥时候会倒塌。直接模拟每一次抽取,从改层往下计算上面木块的重心,记录每一层最左位置和最右位置,判断重心是否偏离最左或者最右或者在边界上即可。#include <iostream>#include <string>#include <cstdio>#include <algorithm>#include <string>#include原创 2017-07-23 22:41:20 · 570 阅读 · 0 评论 -
HDU4915 Parenthese sequence
Parenthese sequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1559 Accepted Submission(s): 625Problem Descriptionbobo原创 2017-07-24 09:08:57 · 347 阅读 · 0 评论 -
HDU5983 Pocket Cube(模拟)
Pocket CubeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 659 Accepted Submission(s): 249Problem DescriptionThe Pocket Cube,原创 2017-07-24 09:28:22 · 458 阅读 · 0 评论 -
codeforces 792C —— Divide by Three(分类讨论)
C. Divide by Threetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA positive integer number n is written on原创 2017-03-29 22:30:11 · 570 阅读 · 0 评论 -
Codeforces Round #403 (Div. 2, based on Technocup 2017 Finals) 题解(ABCDE) (二分,dfs序,数据结构)
A. Andryusha and Sockstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndryusha is an orderly boy and like原创 2017-03-07 19:59:05 · 508 阅读 · 0 评论 -
CodeForces 699B——One Bomb(预处理,暴力枚举)
C - One BombTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionYou are given a description of a depot. It is a rectangular check原创 2016-07-23 12:15:29 · 816 阅读 · 0 评论 -
CodeForces 266C—— Below the Diagonal(模拟,贪心,递归)
题目:D - Below the DiagonalTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionYou are given a square matrix consisting o原创 2016-07-18 20:32:16 · 821 阅读 · 0 评论 -
ACdream 1187 ——Rational Number Tree(二进制,递归)
题目:DescriptionConsider an infinite complete binary tree where the root node is 1/1 and left and right childs of node p/q are p/(p+q) and (p+q)/q, respectively. This tree looks like:原创 2016-07-18 20:52:48 · 442 阅读 · 0 评论 -
CodeForces 615E——Hexagons(二分,模拟)
E. Hexagonstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAyrat is looking for the perfect code. He decide原创 2016-08-06 22:47:12 · 319 阅读 · 0 评论 -
Gym 100947C——Rotate It !!(水题水题)
Rotate It !!time limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputDzy and Fox have a sequence A consisting of N n原创 2016-08-06 22:55:19 · 460 阅读 · 0 评论 -
HDU5783(2016多校第五场)——Divide the Sequence(水水水)
New~ 欢迎参加2016多校联合训练的同学们~ Divide the SequenceTime Limit: 5000/2500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 962 Accepted Submission(s): 471原创 2016-08-07 16:48:03 · 321 阅读 · 0 评论 -
HDU5437(2015长春网赛)——Alisha’s Party(优先队列)
Alisha’s PartyTime Limit: 3000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 5309 Accepted Submission(s): 1337Problem DescriptionPrincess原创 2016-09-09 16:30:48 · 308 阅读 · 0 评论 -
HDU5813(多校第七场)——Elegant Construction(模拟构造)
Elegant ConstructionTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 42 Accepted Submission(s): 21Special JudgeProblem Description原创 2016-08-09 17:39:19 · 605 阅读 · 0 评论 -
HDU5816(2016多校第七场)——Hearthstone(暴力枚举,状态压缩)
HearthstoneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 488 Accepted Submission(s): 206Problem DescriptionHearthstone is a原创 2016-08-10 13:32:08 · 878 阅读 · 0 评论 -
HDU5831(2016多校第八场)———Rikka with Parenthesis II(水题)
Rikka with Parenthesis IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 16 Accepted Submission(s): 16Problem DescriptionAs w原创 2016-08-11 17:50:38 · 587 阅读 · 0 评论 -
Codeforces Round #383 (Div. 2)全部题解 (A,B,C,D,E)
A. Arpa’s hard exam and Mehrdad’s naive cheattime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere exists a原创 2016-12-07 19:09:15 · 1643 阅读 · 0 评论 -
codeforces 816A Karen and Morning
A. Karen and Morningtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputKaren is getting ready for a new schoo原创 2017-07-24 09:35:42 · 236 阅读 · 0 评论