稍难思维||水题
aa
hehedad
这个作者很懒,什么都没留下…
展开
-
CodeForces Good Bye 2019 A-E
A. Card Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputTwo players decided to play one interesting card game.There is a de...原创 2019-12-30 01:39:38 · 645 阅读 · 3 评论 -
Educational Codeforces Round 79 (Rated for Div. 2) A-D
#include<bits/stdc++.h>using namespace std;const int inf = 0x3f3f3f3f;int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int te; cin >> te; while (te--) { int sum...原创 2019-12-28 13:49:47 · 293 阅读 · 0 评论 -
codeforces-1278D Segment Tree(乱搞)
Segment Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs the name of the task implies, you are asked to do some work with...原创 2019-12-24 00:02:35 · 328 阅读 · 0 评论 -
CodeForces - 1264B (分类讨论即可)
Examplesinput2 2 2 1outputYES0 1 0 1 2 3 2input1 2 3 4outputNOinput2 2 2 3outputNO#include <bits/stdc++.h>#define ll long longusing namespace std;int ...原创 2019-12-06 14:38:57 · 131 阅读 · 0 评论 -
Vertex Cover 湘潭CCPC邀请赛 (递推)
链接:https://ac.nowcoder.com/acm/contest/1107/J来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536KSpecial Judge, 64bit IO Format: %lld题目描述Alice and Bobo are playing a game on a graph with ...原创 2019-10-02 20:21:56 · 219 阅读 · 0 评论 -
2019牛客暑期多校训练营(第三场)J LRU management(模拟)
链接:https://ac.nowcoder.com/acm/contest/883/J来源:牛客网题目描述ZYB has finished his computer course recently. He is very interested in the LRU algorithm for cache management.To simplify the problem, as...原创 2019-07-26 10:45:01 · 228 阅读 · 4 评论 -
CCPC-Wannafly Winter Camp 夺宝奇兵
题目描述wls所在的王国有n个居民(不包括wls),他们共有m件神奇的宝物。对于第ii件宝物,wls可以花费ai的金币把它从原来的主人那里买过来。请问wls最少要准备多少金币,才能使他成为宝物最多的人(wls的宝物件数严格比其他所有人多)?输入描述第一行两个整数n,m。接下来mm行,每行两个整数ai,ci,表示第i件宝物属于居民ci,可以花费ai的代...原创 2019-07-12 16:21:44 · 212 阅读 · 0 评论 -
HDU - 6514 Monitor
MonitorTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 163840/163840 K (Java/Others)Total Submission(s): 71Accepted Submission(s): 21P...原创 2019-04-19 23:33:59 · 250 阅读 · 0 评论 -
2019 ICPC南昌邀请赛比赛 K. MORE XOR (思维,规律?,前缀,异或)
Given a sequence ofnnnumbersa_1, a_2, \cdots, a_na1,a2,⋯,anand three functions.Define a functionf(l,r)f(l,r)which returns\oplus a[x]⊕a[x](l \le x \le rl≤x≤r). The\oplus⊕represents exclu...原创 2019-04-20 18:25:13 · 703 阅读 · 0 评论 -
2019 ICPC南昌邀请赛比赛 C.Angry FFF Party
In ACM labs, there are only few members who have girlfriends. And these people can make FFF Party angry easily. One day, FFF Party prepared a functionFFand a setSS.\displaystyle F(x)=\left\{ \...原创 2019-04-20 18:23:27 · 540 阅读 · 0 评论 -
2019 ICPC南昌邀请赛比赛 I. Max answer (单调栈+思维预处理)
Alice has a magic array. She suggests that the value of a interval is equal to the sum of the values in the interval, multiplied by the smallest value in the interval.Now she is planning to find the...原创 2019-04-20 18:18:45 · 212 阅读 · 0 评论 -
SDNU_ACM_ICPC_2019_Winter_Practice_3rd
A - Replace To Make Regular Bracket Sequence You are given string s consists of opening and closing brackets of four kinds <>,{}, [], (). There are two types of brackets: opening and closing...原创 2019-01-28 16:13:00 · 429 阅读 · 0 评论 -
HDU - 4585 Shaolin (STL的使用。)
Shaolin temple is very famous for its Kongfu monks.A lot of young men go to Shaolin temple every year, trying to be a monk there. The master of Shaolin evaluates a young man mainly by his talent on un...原创 2019-01-15 20:32:41 · 183 阅读 · 0 评论 -
CodeForces - 1042C (emmmmmm水题)
You are given an array aa consisting of nn integers. You can perform the following operations with it:Choose some positions ii and jj (1≤i,j≤n,i≠j1≤i,j≤n,i≠j), write the value of ai⋅ajai⋅aj into the...原创 2018-12-02 11:06:28 · 414 阅读 · 0 评论 -
CodeForces-1059B Forgery(emmm暴力找吧~~)
Student Andrey has been skipping physical education lessons for the whole term, and now he must somehow get a passing grade on this subject. Obviously, it is impossible to do this by legal means, but ...原创 2018-11-20 19:03:21 · 182 阅读 · 0 评论 -
HDU - 5573 Binary Tree(构造)
The Old Frog King lives on the root of an infinite tree. According to the law, each node should connect to exactly two nodes on the next level, forming a full binary tree. Since the king is professio...原创 2018-10-11 15:12:48 · 195 阅读 · 0 评论 -
coedforce Gym - 101597C (暴力匹配)
K. ACMtime limit per test2.0 smemory limit per test64 MBinputstandard inputoutputstandard outputProgramming contests are fun! So fun in fact, that you find yourself browsing online through hundreds of...原创 2018-04-18 21:18:27 · 246 阅读 · 0 评论 -
codeforce Gym - 101597E(暴力排序)
E. Collectiontime limit per test2.0 smemory limit per test64 MBinputstandard inputoutputstandard outputAlan recently started collecting the cards of the well known "Famous Computer Scientists" card ga...原创 2018-04-18 20:47:48 · 423 阅读 · 0 评论 -
ZOJ - 3880 Demacia of the Ancients
Demacia of the AncientsTime Limit: 2 Seconds Memory Limit: 65536 KB There is a popular multiplayer online battle arena game called Dem...原创 2018-04-18 19:59:24 · 111 阅读 · 0 评论