
训练集
文章平均质量分 94
m0_51864047
这个作者很懒,什么都没留下…
展开
-
杭电ACM-LCY算法进阶培训班-专题训练(线段树)
杭电ACM-LCY算法进阶培训班-专题训练(线段树)传送门张煊的金箍棒(2)Problem Description张煊的金箍棒升级了!升级后的金箍棒是由几根相同长度的金属棒连接而成(最开始都是铜棒,从1到N编号);张煊作为金箍棒的主人,可以对金箍棒施以任意的变换,每次变换操作就是将一段连续的金属棒(从X到Y编号)改为铜棒,银棒或金棒。金箍棒的总价值计算为N个金属棒的价值总和。其中,每个铜棒价值为1;每个银棒价值为2;每个金棒价值为3。现在,张煊想知道多次执行操作后的金箍棒总价值。Input原创 2021-03-28 09:16:53 · 767 阅读 · 0 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(矩阵快速幂)
杭电ACM-LCY算法进阶培训班-专题训练(矩阵快速幂)【模板】传送门 杭电ACM-LCY算法进阶培训班-专题训练(矩阵快速幂)【模板】矩阵快速幂模板CountProblem DescriptionInputOutputSample InputSample OutputSource思路Sum of Tribonacci NumbersProblem DescriptionInputOutputSample InputSample OutputAuthorSource思路Another kind of F原创 2021-04-04 22:35:38 · 521 阅读 · 0 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(母函数及应用)
杭电ACM-LCY算法进阶培训班-专题训练(母函数及应用) 杭电ACM-LCY算法进阶培训班-专题训练(母函数及应用)Ignatius and the Princess IIIProblem DescriptionInputOutputSample InputSample Output思路:Square CoinsProblem DescriptionInputOutputSample InputSample Output思路:Holding Bin-Laden Captive!Problem Descr原创 2021-04-12 09:15:52 · 395 阅读 · 0 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(计算几何入门)
杭电ACM-LCY算法进阶培训班-专题训练(计算几何入门)传送门 杭电ACM-LCY算法进阶培训班-专题训练(计算几何入门)Shape of HDUProblem DescriptionInputOutputSample InputSample Output代码改革春风吹满地Problem DescriptionInputOutputSample InputSample Output代码gxx's ProblemProblem DescriptionInputOutputSample InputSamp原创 2021-04-17 23:38:15 · 857 阅读 · 1 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(Hash及其应用)
杭电ACM-LCY算法进阶培训班-专题训练(Hash及其应用) 杭电ACM-LCY算法进阶培训班-专题训练(Hash及其应用)Ignatius and the Princess IIProblem DescriptionInputOutputSample InputSample Output题意思路sortProblem DescriptionInputOutputSample InputSample Output思路解方程Problem DescriptionInputOutputSample Inpu原创 2021-04-24 23:30:08 · 553 阅读 · 0 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(KMP)
杭电ACM-LCY算法进阶培训班-专题训练(KMP)提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录杭电ACM-LCY算法进阶培训班-专题训练(KMP)前言一、pandas是什么?二、使用步骤1.引入库2.读入数据总结前言提示:这里可以添加本文要记录的大概内容:例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。提示:以下是本篇文章正文内容,下面案例可供参考一、pandas是什么?示例:pand原创 2021-05-01 17:40:22 · 476 阅读 · 0 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(区间dp)
杭电ACM-LCY算法进阶培训班-专题训练(区间dp) 杭电ACM-LCY算法进阶培训班-专题训练(区间dp)Two RabbitsDire WolfString painterYou Are the OneTwo RabbitsProblem DescriptionLong long ago, there lived two rabbits Tom and Jerry in the forest. On a sunny afternoon, they planned to play a game原创 2021-05-13 16:25:24 · 342 阅读 · 0 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(强连通分量)
点对统计最大点权点对统计Problem Description给定一个有向图,统计有多少点对u,v(1≤u<v≤n)u,v(1≤u<v≤n)u,v(1≤u<v≤n)满足uuu可以到达vvv,且vvv可以到达uuu。Input第一行包含一个正整数T(1≤T≤10)T(1≤T≤10)T(1≤T≤10),表示测试数据的组数。每组数据第一行包含两个正整数n,m(1≤n≤100000,1≤m≤200000)n,m(1≤n≤100000,1≤m≤200000)n,m(1≤n≤100000.原创 2021-05-15 19:30:26 · 847 阅读 · 0 评论 -
选拔赛补题
简单签到祈枫想:我做出签到题就算成功。给定NNN,求⌊N1⌋+⌊N2⌋+...+⌊NN−1⌋+⌊NN⌋⌊\frac{N}{1}⌋+⌊\frac{N}{2}⌋+...+⌊\frac{N}{N−1}⌋+⌊\frac{N}{N}⌋⌊1N⌋+⌊2N⌋+...+⌊N−1N⌋+⌊NN⌋⌊X⌋⌊X⌋⌊X⌋表示对XXX向下取整。输入格式:一行一个整数N(1≤N≤1091≤N≤10^91≤N≤109)输出格式:一行一个整数表示答案,答案对998244353998244353998244353取模。输入原创 2021-05-03 21:30:31 · 252 阅读 · 0 评论 -
第十一届山东省大学生程序设计竞赛(重现赛)
Grade Point Average(G题)Adventurer's Guild(H题)Dyson Box(D题)Build Roads(B题)Matrix Problem(M题)Cat Virus(C题)Grade Point Average(G题)题目描述As soon as Moca entered the university last year as a freshman, she was told that the competition is fierce and everyone .原创 2021-05-14 12:13:06 · 1639 阅读 · 0 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(2-SAT)
PartyLet's go homePartyProblem Description有nnn对夫妻被邀请参加一个聚会,因为场地的问题,每对夫妻中只有111人可以列席。在2n2n2n 个人中,某些人之间有着很大的矛盾(当然夫妻之间是没有矛盾的),有矛盾的222个人是不会同时出现在聚会上的。有没有可能会有nnn 个人同时列席?Inputnnn: 表示有nnn对夫妻被邀请 (n<=1000)(n<= 1000)(n<=1000)mmm: 表示有mmm 对矛盾关系 (m<(n−.原创 2021-05-24 13:22:39 · 343 阅读 · 0 评论 -
杭电ACM-LCY算法进阶培训班-专题训练(树链剖分)
How far away ?Aragorn's StoryOccupationHow far away ?Problem DescriptionThere are n houses in the village and some bidirectional roads connecting them. Every day peole always like to ask like this “How far is it if I want to go from house A to house B”.原创 2021-06-08 23:30:18 · 307 阅读 · 0 评论 -
队内每周训练_1(补题)
Hit the LotteryIf at first you don't succeed...A Tide of RiverscapeBus Video SystemCut 'em all!Covered Points CountHit the LotteryAllen has a LOT of money. He has n dollars in the bank. For security reasons, he wants to withdraw it in cash (we will not .原创 2021-05-15 23:52:04 · 327 阅读 · 0 评论 -
队内每周训练_2(补题)
A - Right-Coupled NumbersG - AugustJ - GoodbyeB - Make NumbersE - Optimization for UltraNetA - Right-Coupled Numbers思路暴力去试就通过了。#include<bits/stdc++.h>using namespace std;int n;void solve(){ scanf("%d",&n); for(int i=1;i<=sqrt.原创 2021-05-20 16:37:04 · 206 阅读 · 0 评论 -
队内每周训练_3
A - Splitting in TeamsB - Radio StationC - Proper NutritionD - RumorE - K-Dominant CharacterF - Field of WondersA - Splitting in TeamsThere were n groups of students which came to write a training contest. A group is either one person who can write the .原创 2021-05-21 22:54:01 · 344 阅读 · 0 评论 -
ICPC全国邀请赛—校内选拔赛(补题)
G - Famous gameProblem StatementThere are NNN stones arranged in a row. The i-th stone from the left is painted in the color CiC_iCi.Snuke will perform the following operation zero or more times:Choose two stones painted in the same color. Repaint al原创 2021-05-26 15:45:41 · 588 阅读 · 0 评论 -
队内每周训练_4
B - Friend-GraphD - Minimum’s RevengeE - Mr. Frog’s ProblemF - Mr. Frog’s Game HA - A SecretB - Friend-GraphIt is well known that small groups are not conducive of the development of a team. Therefore, there shouldn’t be any small groups in a good team..原创 2021-06-01 11:17:18 · 242 阅读 · 0 评论 -
2014上海全国邀请赛(重现补题)
A - Game with PearlsF - Linearization of the kernel functions in SVMJ - Comparison of Android versionsC - Seam CarvingA - Game with PearlsTom and Jerry are playing a game with tubes and pearls. The rule of the game is:Tom and Jerry come up together w.原创 2021-06-08 23:10:21 · 156 阅读 · 1 评论 -
2021牛客暑期多校训练营1
Determine the Photo PositionFind 3-friendly IntegersBall DroppingAlice and BobDetermine the Photo Position题目描述You have taken the graduation picture of graduates. The picture could be regarded as a matrix A of n×nn \times nn×n, each element in A is 0 or.原创 2021-07-18 09:44:30 · 1222 阅读 · 1 评论 -
2021牛客暑期多校训练营2
C题 Draw GridsZYT and LBC decided to play a game.They will alternately do the following operation.Pick 4 integers a,b,c,da,b,c,da,b,c,d(1≤a1\leq a1≤a,c≤nc \leq nc≤n and 1≤b1\leq b1≤b,d≤md \leq md≤m) , where ∣a−c∣+∣b−d∣=1|a-c|+|b-d|=1∣a−c∣+∣b−d∣=1 , an原创 2021-07-21 14:49:19 · 193 阅读 · 1 评论 -
2021牛客暑期多校训练营4
F题 Just a joke题目描述Alice and Bob are playing a game.At the beginning, there is an undirected graph GGG with nnn nodes.Alice and Bob take turns to operate, Alice will play first. The player who can’t operate will lose the game.Each turn, the player shou原创 2021-07-27 10:56:43 · 178 阅读 · 0 评论 -
2021牛客暑期多校训练营3
J题 Counting TrianglesB题 Black and whiteE题 MathF题 24dianJ题 Counting Triangles题目描述Goodeat finds an undirected complete graph with n vertices. Each edge of the graph is painted black or white. He wants you to help him find the number of triangles (a, b, c.原创 2021-07-30 09:53:00 · 238 阅读 · 1 评论 -
2021牛客暑期多校训练营8
Rise of ShadowsAres, Toilet AresYet Another Problem About PiRise of Shadows题目描述Rumor has it that shadows rise in a prime leap year. A prime leap year is a leap year, and the year number is also a prime number.Toilet-Ares has recently learned the defin.原创 2021-08-11 11:59:37 · 232 阅读 · 0 评论