----------------------模拟
文章平均质量分 56
dxyinme
这个作者很懒,什么都没留下…
展开
-
[2019 ICPC Asia Nanchang Regional]Resistance
source题意: 太长了自己看吧,大模拟罢了谨以此题纪念一去不复返的acm生涯#include <bits/stdc++.h>using namespace std;const int INF = 2e9;const int MAXN = 404;const int GUN = 1;const int BUNKER = 2;const int PRIVATE = 1;const int CAPTAIN = 2;char emchar[MAXN];int n,k,L,E原创 2020-11-10 00:39:22 · 307 阅读 · 0 评论 -
[codeforces1219G]Harvester
time limit per test : 0.5 secondsmemory limit per test : 256 megabytesIt is Bubble Cup finals season and farmer Johnny Bubbles must harvest his bubbles. The bubbles are in a rectangular bubblefield ...原创 2019-09-25 20:50:03 · 642 阅读 · 0 评论 -
[codeforces1202C]You Are Given a WASD-string...
time limit per test : 2 secondsmemory limit per test : 256 megabytesYou have a string sss— a sequence of commands for your toy robot. The robot is placed in some cell of a rectangular grid. He can p...原创 2019-09-14 20:56:14 · 701 阅读 · 0 评论 -
[codeforces1200E]Compress Words
time limit per test : 1 secondmemory limit per test : 256 megabytes分数:2000,但是我觉得这个题挺神的。Amugae has a sentence consisting of nnn words. He want to compress this sentence into one word. Amugae doesn’t...原创 2019-09-11 18:06:04 · 350 阅读 · 0 评论 -
[gym102012K]Rikka with Ants
time limit per test : 4.0 smemory limit per test : 1024 MBEvery time when Rikka faces to a great nature sight, she will recall a line of ants moving in a hurry. Rikka loves ants and keeps two large ...原创 2019-09-06 10:16:33 · 383 阅读 · 0 评论 -
[codeforces28A]Bender Problem
time limit per test : 2 secondsmemory limit per test : 256 megabytesRobot Bender decided to make Fray a birthday present. He drove n nails and numbered them from 1 to nnn in some order. Bender decid...原创 2019-09-03 22:32:12 · 299 阅读 · 0 评论 -
[codeforces830C]Bamboo Partition
time limit per test : 2 secondsmemory limit per test : 512 megabytes分数:2500Vladimir wants to modernize partitions in his office. To make the office more comfortable he decided to remove a partition...原创 2019-07-23 11:43:08 · 333 阅读 · 0 评论 -
[codeforces936C]Lock Puzzle
time limit per test : 2 secondsmemory limit per test : 256 megabytesWelcome to another task about breaking the code lock! Explorers Whitfield and Martin came across an unusual safe, inside of wh...原创 2019-05-01 12:05:44 · 273 阅读 · 0 评论 -
[codeforces][gym102062]2018 Battle of Brains
抽了小半天空做了一下这套题…A.简单坑题,由于英文不好被题意gank了,判断(a+b+c+d)*2是否大于等于n+1…#include<bits/stdc++.h>#define LiangJiaJun mainusing namespace std;int T,n,a,b,c,d;int w33ha(){ scanf("%d%d%d%d%d",&n,&a...原创 2019-04-06 18:41:22 · 474 阅读 · 0 评论 -
[codeforces379D]New Year Letter
time limit per test:1 secondmemory limit per test:256 megabytesMany countries have such a New Year or Christmas tradition as writing a letter to Santa including a wish list for presents. Vasya is an...原创 2018-10-28 09:12:51 · 468 阅读 · 0 评论 -
[codeforces 1042C]Array Product
time limit per test:1 secondmemory limit per test:256 megabytesYou are given an array aconsisting of nnn integers. You can perform the following operations with it:Choose some positions iii and j(1...原创 2018-09-19 12:44:19 · 250 阅读 · 1 评论 -
[codeforces][gym101873]2017-2018 ACM-ICPC German Collegiate Programming Contest (GCPC 2017)
队内训练 6题:CDFGIKC. 有n(n<=1000)n(n<=1000)n(nm(m<=1000)m(m<=1000)m(mT(T<=1000)T(T<=1000)T(Tiii个游乐场的游乐设施耗时tititi,花费pipipi的钱,(1<=ti,pi<=106)(1<=ti,pi<=106)(1X(X<=1000)X(...原创 2018-09-07 12:48:02 · 943 阅读 · 0 评论 -
Educational Codeforces Round 29
太弱鸡了,所以只有4题。(C题最难,没有之一)A. 给你一个数字x,问能不能补充几个前导零使得他变成回文数(可以补充0个前导零)模拟题 #include<iostream>#include<cstdio>#include<cstdlib>#include<cstring>#include<cmath>#include<algorithm>#include<queue>#include<原创 2017-09-23 21:30:14 · 205 阅读 · 0 评论 -
2013-2014 ACM-ICPC Brazil Subregional Programming Contest
A. 题意:给A,B,C三个数,A,B,C ∈ {0,1},如果A,B,C中有一个与其他两个不一样,则输出其标号。不存在则输出’*’ 题解:模拟#include<iostream>#include<cstring>#include<cstdio>#include<cstdlib>#include<algorithm>#include<queue>#define LiangJiaJun原创 2017-09-13 13:51:59 · 738 阅读 · 0 评论 -
[UESTC 1251]谕神的密码
Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) 谕神是集训队里面智商数一数二的大神,在他的电脑里储存着他在学习的东西。每天都要通过学习来提高自己的知识水平。然而,作为一个长者,谕神不愿意将自己的学习资料给那些too young, too simple, sometimes naiv原创 2017-02-04 15:59:32 · 350 阅读 · 0 评论 -
[UESTC 1074]秋实大哥搞算数
秋实大哥大学物理挂科了(误),于是在下学期的前两周的某一天要悲剧的补考。为了不给学校的挖掘机大楼做贡献,秋实大哥决定在假期里努力复习。当然,良好的计算能力也是非常必要的,毕竟是涉及计算自己做多少分的题能够通过考试的问题。现在他给自己出了一大堆长长的只有涉及整形四则运算式子,然后埋头计算结果。为了检验自己的计算能力,他请你来帮忙。Input 第一行一个整数T,表示式子的总数。 接下来每一行有一个长原创 2016-10-03 10:56:42 · 433 阅读 · 0 评论 -
[UESTC 1256]昊昊爱运动
昊昊喜欢运动 他N天内会参加M种运动(每种运动用一个[1,m]的整数表示)舍友有Q个问题,问昊昊第l天到第r天参加了多少种不同的运动。输入: 输入两个数N, M (1≤N≤2000, 1≤M≤100); 输入N个数ai表示在第i天昊昊做了第ai类型的运动; 输入一个数Q(1≤Q≤10^6) 输入Q行 每行两个数 l, r(1≤l≤r≤n)输出: 一共Q行 每一行输出一个数 表示昊昊在第原创 2016-10-22 21:35:15 · 695 阅读 · 0 评论 -
Codeforces Round #369 (Div. 2)
已经变成智障选手了。。。。好久没打比赛的后遗症。。。B题没开long long 被搞成SB。。不爽。。抱了SPS的大腿才上的分,感觉很不好。。。A. 给一个公交车的座位图,X是有人坐,O是没人坐,问能不能找出一个并排的都没人坐的座位,可以的话就输出YES+答案(可以并排的座位用+号代替O),不行的话就输出NO 样例输入1:6OO|OXXO|XXOX|OOXX|OXOO|OOOO|XX原创 2016-08-30 10:16:44 · 321 阅读 · 0 评论 -
Educational Codeforces Round 16
抽空做了一下这些题。。。F题真的是不会了。。。A. King MovesThe only king stands on the standard chess board. You are given his position in format “cd”, where c is the column from ‘a’ to ‘h’ and d is the row from ‘1’ to ‘8’.原创 2016-08-28 14:16:00 · 399 阅读 · 0 评论