
队内比赛改题
风吹落最后一片叶.
站在巨人的肩膀上
展开
-
Gym - 101964E -Fishermen(二分+差分求前缀和)
本题出处:2018-2019 ACM-ICPC东南欧洲区域编程竞赛(SEERC 2018)Sample input 8 4 47 23 34 55 12 21 48 49 46 1 4 9Sample output2232Note The picture illustrates for the above exam...原创 2018-11-11 21:23:05 · 777 阅读 · 0 评论 -
German Collegiate Programming Contest 2018(GCPC)
目录Gym - 102021B: Battle RoyaleGym - 102021D:Down the PyramidGym - 102021E:Expired LicenseGym - 102021F:Fighting MonstersGym - 102021I:It’s Time for a MontageGym - 102021L:Logic Puzz...原创 2019-04-01 17:00:36 · 801 阅读 · 0 评论 -
Gym - 102082B 二分或DP
Problem B Arithmetic Progressions题意:给你一串数字(数字没有重复),让你找出最长的等差数列,输出最长的长度。两种方法,一种是二分查找用binsery_search,另一种是用dp,这种方法比较巧妙。两种代码都是同学做的。第一种,二分二分枚举到n-ans就够了,刚开始在vj上面交不会超时,但是比赛的时候超时了找了半天错。#includ...原创 2019-03-16 20:18:37 · 539 阅读 · 0 评论 -
Gym - 102082A 字符串的比较(模拟)
Problem A Digits Are Not Just Characters题意:给你若干个文件名,每个文件名由大写字母(从“A”到“Z”)、小写字母(从“A”到“Z”)和数字(从“0”到“9”)组成。每个大写或小写字母看作成一个字母项。每个连续的数字序列构成一个数字项。(例X52Y,"52"是单独的一项,5和2都不是。)比较规则:1、数字项在字母项之前。2、两个字母...原创 2019-03-16 10:51:46 · 1041 阅读 · 0 评论 -
Gym 100541 B. 思维题 找规律
Write a program to compute the following sumSgiven a positive integern:, whereis the largest integer not greater thanx.InputThe input file consists of several datasets. The first line ...转载 2019-03-08 20:19:04 · 220 阅读 · 0 评论 -
Gym - 100541D 找规律
Your team was exploring an ancient city. Suddenly you found an old scroll with 2 integer numbersNandK, which encrypts the secret code to open a treasure box. Considering a transformation on an int...转载 2019-03-08 20:09:57 · 211 阅读 · 0 评论 -
HDU - 5874 找规律
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5874题目大意: 给你m个人,n块颜色不同的石头。m个人当中,没两个人不是敌人就是朋友。现在这m个人要用石头给自己做一串项链,同时要满足两种要求:1、朋友之间的项链至少有一个是相同的;2、敌人之间的项链没有相同的。 如果可以做到的话,输出T否则输出F。本题思路 : ...原创 2018-11-22 21:53:56 · 251 阅读 · 0 评论 -
HDU-5873(思维题)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5873题意: 有m个小组,每个小组有n个队伍,每两个队伍之间进行一场比赛。一场比赛的得分有三种情况,2:0, 1:1, 0:2。然后给出n个队伍的得分。让你判断每组的得分是否合法。 AC代码:#include<cstdio>#include<iostream>...原创 2018-11-22 21:16:54 · 355 阅读 · 0 评论 -
HDU - 6208 (ios::sync_with_stdio(false);加速cin cout)
Here you have a set of strings. A dominator is a string of the set dominating all strings else. The string SS is dominated by TT if SS is a substring of TT.InputThe input contains several test cas...原创 2018-11-19 21:28:06 · 187 阅读 · 0 评论 -
浙大第十九届校赛
目录A、Thanks, TuSimple!E、PotionG、PostmanJ、Extended Twin Composite NumberA、Thanks, TuSimple!题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5979题意:有n个男生 m个女生。 这些人要在一起配对跳舞...原创 2019-04-17 10:35:37 · 219 阅读 · 2 评论