
Contest
文章平均质量分 63
Irish_Moonshine
沐月
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #562 (Div. 2)
A. Circle Metro【模拟】题意:有一个从1到n的环,一个人甲从某一点a顺时针旋转,到x点结束;另一个人乙从某一点b逆时针旋转,到y点结束。询问两个人是否存在某一时刻处于同一点。#include<iostream>#include<cstring>#include<cstdio>#include<algorithm>#inclu...原创 2019-05-27 13:51:08 · 242 阅读 · 0 评论 -
2016 ICPC 青岛站 A【water】、B【模拟】、C【规律】、D【概率】
A - Relic Discovery Recently, paleoanthropologists have found historical remains on an island in the Atlantic Ocean. The most inspiring thing is that they excavated in a magnificent cave and found th原创 2017-12-03 23:04:03 · 578 阅读 · 0 评论 -
2016CCPC杭州站 F - Four Operations 【枚举】
Little Ruins is a studious boy, recently he learned the four operations! Now he want to use four operations to generate a number, he takes a string which only contains digits ‘1’ - ‘9’, and split it in原创 2017-10-26 22:03:59 · 594 阅读 · 0 评论 -
2016CCPC杭州站 C - Car 【贪心】
Ruins is driving a car to participating in a programming contest. As on a very tight schedule, he will drive the car without any slow down, so the speed of the car is non-decrease real number. Of cours原创 2017-10-26 21:54:06 · 630 阅读 · 0 评论 -
2016CCPC杭州站 A - ArcSoft's Office Rearrangement【贪心】
ArcSoft, Inc. is a leading global professional computer photography and computer vision technology company. There are NN working blocks in ArcSoft company, which form a straight line. The CEO of ArcSof原创 2017-10-26 21:48:27 · 521 阅读 · 0 评论 -
CF B. Divisiblity of Differences【water+WA9】
B. Divisiblity of Differences time limit per test1 second memory limit per test512 megabytes inputstandard input outputstandard output You are given a multiset of n integers. You should select exa原创 2017-10-17 10:35:25 · 295 阅读 · 0 评论 -
ZUFEOJ 2445 数字旋转【DP】
Problem M:数字旋转 时间限制:1000ms 内存限制:256MB 描述 给出��个数字,对于每个数字,都可以进行一定次数的左旋转操作。如123−> 231−> 312−> 123, 1000−> 0001−> 0010−> 0100−> 1000。 ��个数最多允许旋转的次数总共为��次(不要求恰好旋转��次)。问进行旋转后,��个 数字的和最大是多少。 输入 第一行输原创 2017-11-11 01:21:39 · 1048 阅读 · 0 评论 -
ZUFEOJ 2229-2239 【A~K&&G==0】
ZUFE OJ 2229-2239 源自浙江财经大学信息学院2014年院赛 其中在某些基础点上也会被卡住些许时间,在此记录并向当年的出题先生致敬!A:问题 A: 黑鸡打BOSS题目描述今天,黑鸡决定去单挑纳什男爵。由于黑鸡和提莫一样萌,所以他与提莫有一些共性,也就是黑鸡也会造成毒属性伤害。这里我们把黑鸡与男爵的战斗规则简单介绍一下。黑鸡具有a的固定攻击,b的毒属性伤害,当然黑鸡由于装备比较好,原创 2017-10-29 17:12:07 · 757 阅读 · 0 评论 -
CF 868 C. Qualification Rounds 【状态压缩】
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Snark and Philip are preparing the problemset for the upcoming pre-qualification round for原创 2017-10-05 20:38:03 · 439 阅读 · 0 评论 -
CF 868 A. Bark to Unlock 【简单匹配】
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output As technologies develop, manufacturers are making the process of unlocking a phone as user-原创 2017-10-05 19:51:46 · 858 阅读 · 0 评论 -
CF 868 B. Race Against Time【模拟】
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Have you ever tried to explain to the coordinator, why it is eight hours to the contest and原创 2017-10-05 19:53:02 · 413 阅读 · 0 评论 -
2017杭电新生赛 1001~1009
那句话怎么说的来着,打了星还垫底是最尴尬的= = 虽然没打星… 现场只做出了6个题,走的时候连账号都没拿,借了同学的账号赛后清了其余三道1006 1007 1008。1006读错题,就算是没读错,由于之前的一个类似的题没清是该反思反思了!1007寻思打完1008回来接手1008最后一小时都在攻这个题,居然被一个&卡住了,哎…居然能把“与”和”同或”当成一个东西1003和1009犯了低级错误。原创 2017-11-27 01:36:28 · 554 阅读 · 0 评论 -
第十一届浙财信息管理与工程学院程序设计竞赛题解
2017年程序设计院赛题解A. 祝大家院赛取得好成绩分支结构时间复杂度 O(1)O(1)分析: 用条件语句分类讨论。#include<iostream>using namespace std;int main(){ int T, N; cin >> T; while (T--) { cin >> N; if (N > 0) c原创 2017-12-12 19:27:08 · 283 阅读 · 0 评论 -
CF39 A【模拟】、B【water】、D【water】、E【记忆化搜索博弈】、F【water】、H【water】、J【暴力||字符串哈希】
A - C*++ Calculations CodeForces - 39A C*++ language is quite similar to C++. The similarity manifests itself in the fact that the programs written in C*++ sometimes behave unpredictably and lead to...原创 2018-04-10 22:02:36 · 1692 阅读 · 0 评论 -
Codeforces Round #561 (Div. 2)
C. A Tale of Two Lands【分类讨论+二分】计算满足P=min(∣x−y∣,∣x+y∣);P=min(|x-y|,|x+y|);P=min(∣x−y∣,∣x+y∣); Q=max(∣x−y∣,∣x+y∣);Q=max(|x-y|,|x+y|);Q=max(∣x−y∣,∣x+y∣);[∣x∣,∣y∣]⊆[P,Q][|x|,|y|]\subseteq[P,Q][∣x∣,∣y∣]...原创 2019-05-26 17:01:44 · 204 阅读 · 0 评论 -
牛客练习赛23题解
A 托米的赌球【贪心】 模拟,从最大的钱数直接贪心来。#include&lt;bits/stdc++.h&gt;using namespace std;#define ll long long intll a[15]={10000,5000,2000,1000,500,200,100,50,20,10,5,2,1};ll vis[15];int main(){ int ...原创 2018-07-31 19:16:25 · 471 阅读 · 0 评论 -
牛客小白月赛5题解
前情提要: B题的结论到目前为止还没能推出来。 赛时七题,赛后补了C、E。A 无关(relationship)容斥原理dfs实现,注意剪枝否则爆long long#include <iostream>#include <stdio.h>#include <string.h>#include <algorithm>#inc...原创 2018-07-23 21:04:39 · 528 阅读 · 0 评论 -
“浪潮杯”山东省第六届ACM大学生程序设计竞赛题解
A.Nias and Tug-of-War#include <iostream>#include <string.h>#include <stdio.h>#include <algorithm>#include <cmath>using namespace std;const int maxn = 111;stru...原创 2018-05-15 23:14:05 · 408 阅读 · 0 评论 -
第七届福建省程序设计竞赛题解
A.Best Friend Forever B.Card Game(Second Edition)#include <iostream>#include <stdio.h>#include <string.h>#include <algorithm>#include <cmath>using namespace st...原创 2018-05-15 11:52:01 · 443 阅读 · 0 评论 -
第六届福建省程序设计竞赛题解
A.Super Mobile Charger 小模拟,用充电宝给手机充电。#include <iostream>#include <stdio.h>#include <algorithm>using namespace std;int a[123];int main(){ int T; scanf("%d",&T)...原创 2018-05-15 11:40:16 · 388 阅读 · 0 评论 -
第十四届华中科技大学程序设计竞赛决赛同步赛题解【持续更新】
A Beauty of Trees 扩展并查集解决,有一道非常相似的题目 HDU 3038 #include<iostream>#include<cstring>#include<cstdio>#include<algorithm>#include<string>#include<map>#inclu...原创 2018-05-06 23:09:11 · 441 阅读 · 0 评论 -
2018年北京信息科技大学第十届程序设计竞赛 F 扫雷【DFS】I 郊游【贪心】
https://www.nowcoder.com/acm/contest/118/F https://www.nowcoder.com/acm/contest/118/IF:直接更新全图,DFS搜索处理就好了。#include<iostream>#include<stdio.h>#include<queue>#include<vecto...原创 2018-05-05 20:45:04 · 232 阅读 · 0 评论 -
2016山东省第七届ACM大学生程序设计竞赛题解
A Julyed 答案每一个数对后面整除,若不能整除,答案为整除+1。#include<iostream>#include<stdio.h>using namespace std;int main(){ int t; cin>>t; while(t--){ double a,b; ci...原创 2018-05-05 00:13:01 · 551 阅读 · 0 评论 -
CF 101 102 103
A - Homework CodeForces - 101A Once when Gerald studied in the first year at school, his teacher gave the class the following homework. She offered the students a string consisting of n small Latin ...原创 2018-04-18 00:51:41 · 813 阅读 · 0 评论 -
2012ICPC长春站 K Yet Another Multiple Problem 【BFS+同余模定理】
Problem DescriptionThere are tons of problems about integer multiples. Despite the fact that the topic is not original, the content is highly challenging. That’s why we call it “Yet Another Multiple Pr原创 2017-10-04 15:18:11 · 321 阅读 · 0 评论 -
2012ICPC长春站 I Count【暴力+模拟】
Font Size: ← →Problem DescriptionProf. Tigris is the head of an archaeological team who is currently in charge of an excavation in a site of ancient relics. This site contains relics of a village wher原创 2017-10-04 14:10:53 · 308 阅读 · 0 评论 -
2016ICPC大连站 D A Simple Math Problem【GCC+方程】
Given two positive integers a and b,find suitable X and Y to meet the conditions: X+Y=a Least Com原创 2017-09-28 18:46:32 · 470 阅读 · 0 评论 -
2016ICPC大连站 A - Wrestling Match【二分图】
HDU 5971 Nowadays, at least one wrestling match is held every year in our country. There are a lot of people in the game is “good player”, the rest is “bad player”. Now, Xiao Ming is referee of the wr原创 2017-09-28 18:43:22 · 612 阅读 · 0 评论 -
烟台大学新秀赛 E、F
aaah Time Limit: 1 Sec Memory Limit: 128 MB Submit: 22 Solved: 11 [Submit][Status][Discuss] DescriptionJon Marius shouted too much at the recent Justin Bieber concert, and now needs to go to the原创 2017-09-27 23:44:00 · 362 阅读 · 0 评论 -
烟台大学新秀赛 C.谁没有关灯?【进制转换】
Description光明大厦的管理者发现员工下班后经常不关灯,造成极大的浪费。为了节约用电,大厦引进了一个叫做TLS的新仪器,该仪器能够准确显示每个楼层各个房间灯的开关状态。TLS的液晶显示屏宽度有限,所以TLS显示屏只用来显示十进制数,不显示二进制数。例如:大厦的某一层有4个房间。第 1、4 房间亮灯,第 2、3 房间灯没有开。则用二进制表示为1001,但是在TLS液晶显示屏为 9。现在你能帮助原创 2017-09-27 21:18:33 · 357 阅读 · 0 评论 -
烟台大学新秀赛 B.Northcott Game【抽象NIM】
Northcott GameTime Limit: 1 Sec Memory Limit: 128 MB Submit: 32 Solved: 13 [Submit][Status][Discuss] DescriptionTom和Jerry正在玩一种Northcott游戏,可是Tom老是输,因此他怀疑这个游戏是不是有某种必胜策略,郁闷的Tom现在向你求救了,你能帮帮他么? 游戏规则是这原创 2017-09-26 22:28:08 · 312 阅读 · 0 评论 -
烟台大学新秀赛 A.贺大和他的朋友们【约瑟夫环】
Description贺大和他的朋友们参加一个户外训练营。训练营的项目包括爬雪山、冬泳、孤岛生存、蹦极、跳伞等极限活动。训练营规定每天淘汰表现最差的一个人。最差人选由参加活动的营员们投票决定。最后剩下的一个人将获得训练营提供的500万大奖。贺大和他的朋友们不想因为投票伤害彼此的友谊,于是他们决定通过做游戏来决定每天出局的人选。游戏规则是这样的:将贺大和他的朋友们 n个人进行编号,分别从1到n,排成一原创 2017-09-26 22:25:25 · 335 阅读 · 0 评论 -
CF 855A. Tom Riddle's Diary【water】
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Harry Potter is on a mission to destroy You-Know-Who’s Horcruxes. The first Horcrux that he原创 2017-09-26 12:55:36 · 579 阅读 · 0 评论 -
CF 855B. Marvolo Gaunt's Ring【枚举||递推】
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Professor Dumbledore is helping Harry destroy the Horcruxes. He went to Gaunt Shack as he s原创 2017-09-26 12:52:03 · 1059 阅读 · 0 评论 -
CF 862A. Mahmoud and Ehab and the MEX
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Dr. Evil kidnapped Mahmoud and Ehab in the evil land because of their performance in the Ev原创 2017-09-24 21:35:18 · 274 阅读 · 0 评论 -
CF 863A. Quasi-palindrome【water】
time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Let quasi-palindromic number be such number that adding some leading zeros (possible none) t原创 2017-09-24 20:16:56 · 336 阅读 · 0 评论 -
2016ICPC大连站 F Detachment【数学】
In a highly developed alien society, the habitats are almost infinite dimensional space. In the history of this planet,there is an old puzzle. You have a line segment with x units’ length represent原创 2017-09-28 18:49:37 · 400 阅读 · 0 评论 -
2016ICPC大连站 I Convex【几何】
We have a special convex that all points have the same distance to origin point. As you know we can get N segments after linking the origin point and the points on the convex. We can also get N angle原创 2017-09-28 18:52:33 · 429 阅读 · 0 评论 -
2016ICPC大连站 J Find Small A【water】
As is known to all,the ASCII of character ‘a’ is 97. Now,find out how many character ‘a’ in a group of given numbers. Please note that the numbers here are given by 32 bits’ integers in the computer.Th原创 2017-09-28 18:55:07 · 379 阅读 · 0 评论 -
2012ICPC长春站 B Candy 【快速排列组合】
Font Size: ← →Problem DescriptionLazyChild is a lazy child who likes candy very much. Despite being very young, he has two large candy boxes, each contains n candies initially. Everyday he chooses one原创 2017-10-04 14:09:07 · 348 阅读 · 0 评论