github使用指南
发表于|更新于|技能积累
|浏览量:
仓库检索
文章作者: Konglb
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Konglb🥝!
相关推荐
2025-04-03
2024蓝桥杯 c++ A组
P10385 [蓝桥杯 2024 省 A] 艺术与篮球填空题,考的闰年知识。 https://www.luogu.com.cn/problem/P10385 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596#include<bits/stdc++.h>using namespace std;#define int long long using ll =long long;int s[11]={13,1,2,3,5,4,4,2,2,2};signed main(){ ios::sync_with_stdio(0); cin.tie(0); int i=2000,j=1,k=1; int cnt=0; ...
2025-03-11
2025牛客寒假算法基础集训营6
random fact:难度预期: A K L B C I J F G H D E, 好像预期的相对顺序没有太大问题,但BCIJ这档比出题人想象的要难很多就是了( random fact:DEL出题人:Wildfire032;其它题出题人:fried-chicken。 random fact:本场的 gpt-o3-mini-high 战绩是 9/12,没做出来的是 D(-1)E(-4)H(-4) 三题。在AC的题目中,gpt在F题有两发罚时、J题有一发罚时(但gpt写的是可以做 x,y≤109x,y\leq 10^9x,y≤109 的做法)、L题有一发罚时,此外所有题都是一发过。我们AI真是太牛了。 A....
2025-03-21
AtCoder Beginner Contest 394
https://www.bilibili.com/video/BV1E2ASeiE8b/?spm_id_from=333.337.search-card.all.click&vd_source=6759ab7a746b50893c564c06fbc6a752 C - Debughttps://atcoder.jp/contests/abc394/tasks/abc394_c 纯模拟 12345678910111213141516171819202122232425262728293031323334#include<bits/stdc++.h>using namespace std;using u32 = unsigned;#define i128 __int128;using ll = long long;//#define int llusing u64 = unsigned long long;const ll inf = 1e9;const ll INF = 1e18;signed main(){ ...
2025-03-21
AtCoder Beginner Contest 395
https://atcoder.jp/contests/abc395 https://www.bilibili.com/video/BV1vE98YDEXA/?vd_source=6759ab7a746b50893c564c06fbc6a752 C - Shortest Duplicate Subarrayhttps://atcoder.jp/contests/abc395/tasks/abc395_c 这一题很简单 1234567891011121314151617181920212223242526272829303132333435#include<bits/stdc++.h>using namespace std;using u32 = unsigned;#define i128 __int128;using ll = long long;//#define int llusing u64 = unsigned long long;const ll inf = 1e9;const ll INF = 1e18;signed main(){ ...
2025-02-27
Codeforces Round 1006 (Div. 3)
C. Creating Keys for StORages Has Become My Main Skill
2025-04-22
acm一些需要记的语法规则
priority_queue,map,set自定义排序规则STL 算法(如 sort)和容器(如 priority_queue)要求比较器是类型而非函数,std::greater<int> 满足这一要求。 std::greater<int> 是一个类模板(定义在 <functional> 头文件中)。 priority_queuepriority_queue 的第三个模板参数需要是一个类型(Type),而不是一个函数或函数对象实例。 ==错误代码== 1priority_queue<node, vector<node>, compare()> pq; // 错误:compare() 是函数调用 方法 1:使用函数对象类型(decltype + 函数指针)将 compare 函数的地址作为模板参数,并通过 decltype 推导类型: 1priority_queue<node, vector<node>, decltype(&compare)>...
评论
公告
There is nothing noble in being superior to your fellow man; true nobility is being superior to your former self. ——Ernest Miller Hemingway