10 2024 档案
第2课-枚举、排序、贪心
摘要:前言 如果认为自己代码没问题,换行问题,边界问题等都处理了还是不行,可以试试交 C++(GCC9) 该类型,因为部分题目是 UVA 上的老题,可能不支持新版本的 C++。 如果提交UNKNOWN ERROR,应该是没绑定UVA账号,洛谷右上角个人设置里去填写注册一下即可。 除法 Division 思
中国大学生程序设计竞赛(秦皇岛)正式赛东北大学秦皇岛分校(SMU Autumn 2024 Team Round 1)
摘要:中国大学生程序设计竞赛(秦皇岛)正式赛东北大学秦皇岛分校(SMU Autumn 2024 Team Round 1) Problem A. 贵校是构造王国吗 I 思路 官方题解很清晰明了。 代码 #include <bits/stdc++.h> using namespace std; #defin
The 2020 ICPC Asia Shenyang Regional Programming Contest Northeastern University(SMU 2024 ICPC 网络赛选拔赛2)
摘要:The 2020 ICPC Asia Shenyang Regional Programming Contest Northeastern University(SMU 2024 ICPC 网络赛选拔赛2) D. Journey to Un'Goro 思路 队友写得,没看。 代码 #include
SMU Autumn 2024 Personal Round 1
摘要:SMU Autumn 2024 Personal Round 1 前言 拉了,后面有空再补补。 A. Lex String 思路 排序后取最小,记录连续取了几个,不要超过 \(k\) 个即可。 代码 #include <bits/stdc++.h> using namespace std; usin
Nordic Collegiate Programming Contest (NCPC 2021)(SMU 2024 ICPC网络赛选拔赛)
摘要:Nordic Collegiate Programming Contest (NCPC 2021)(SMU 2024 ICPC网络赛选拔赛) A Antenna Analysis 思路 原式可拆成: \[(x_i-x_j)-c(i-j)=(x_i-c\cdot i)+(-x_j+c\cdot j)
unordered_map随机底数种子
摘要:偷的 struct myhash { static uint64_t fxn(uint64_t x) { x += 0x9e3779b97f4a7c15; x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9; x = (x ^ (x >> 27)) * 0x94d049
自适应辛普森法
摘要:自适应辛普森法 double a, b, c, d, l, r; const double eps = 1e-8; double F(double x) { //需要积分的公式 return (c * x + d) / (a * x + b); } double simpson(double l,