• 2024-04-27The 2nd GUAT Collegiate Programming Contest (Round 1)
    第二届GUAT大学生程序设计大赛第一场题解(A-M)前言比赛的内容主要包括计算机科学的常用算法,基本的计算理论,(如:离散数学,具体数学,组合数学基础),数据结构基础,程序设计语言(规定是C/C++或者是Java、Python)。在本项比赛中考察学生的不仅仅是能够完成指定任务的程序,更要求在完成程序的功
  • 2023-09-27The 2021 China Collegiate Programming Contest (Harbin) JBEIDG
    The2021ChinaCollegiateProgrammingContest(Harbin)目录The2021ChinaCollegiateProgrammingContest(Harbin)VP概况J-LocalMinimumB-MagicalSubsequenceE-PowerandModuloI-PowerandZeroD-MathmasterG-DamagedBicycleVP概况队友不应该写签到,签到
  • 2023-09-21The 2021 China Collegiate Programming Contest (Harbin) JBEID
    The2021ChinaCollegiateProgrammingContest(Harbin)JBEIDJ.LocalMinimum模拟题意:一个数当且仅当它是当前列最小值同时也是当且行的最小值它才算入贡献。思路:直接\(for\),预处理出每一行每一列的最小值,然后去\(check\)每一个数。//AConemoretimes//nndbk#inc
  • 2023-04-24ACM International Collegiate Programming Contest, Egyptian Collegiate Programming Contest Problem G.
    ProblemG.GloriousStadiumInputfile:glorious.inOutputfile:standardoutputBalloonColor:OrangeAlotofpeoplewanttoattendtheWorldCup,sowewouldliketoconstructagloriousstadiumusingthefollowingalgorithm:1.Construct1stla
  • 2023-04-24ACM International Collegiate Programming Contest, Amman Collegiate Programming Contest (2018) 数学题
    Youaregivenan × mgrid,yourgoalistofindagroupoflinessuchthatthefollowingconditionsaremet:Notwolinesaretouching.Eachcellinthegridhasoneofitssidescoveredbyatleastonelineinthegroup.Alineisaborderofacellin
  • 2023-01-17The 2021 Shanghai Collegiate
    D-Zztrans的班级合照如果没有对序列大小关系的限制,只需要考虑\(a_i\)应该放在第一个序列还是第二个序列,我们定义\(f_{i,j}\)表示前\(i\)个数,第二个序列放了\(j\)
  • 2022-09-07The 2021 China Collegiate Programming Contest (Harbin)
    比赛链接:https://codeforces.com/gym/103447B.MagicalSubsequence题意:给定一个序列\(A\),选择一个长为偶数的子序列\(B\),使得\(B_1+B_2=B_3+B_4...\),问这个