2026.7.12 洛谷入门赛 !!!
补办身份证 + 注册noi
P13585 P11254 课程
Smile Every Day,tomorrow everything will be fine. :)
记住每天保持微笑,明天会更好。:)
时光荏苒,朋友的联系也会散去。而我们和一个人保持连接的方式就是记住,仅此而已。 --------B4013 [语言月赛 202407] significance
打表过样例,暴力出奇迹,搜索真牛逼,骗分进省一|深搜 MLE,广搜 TLE,打表 RE,退火又 CE|删掉 display 看主页|或许可以问我壶不壶关,被封取关(解后私信)|初二蒟蒻 |代词请用“他”|没多大实力|冲刺csp-j|
P3758 P1349 P4159 P2455 高斯消元
(背景图)名字:GuoMingXuants1
15803138221liuhongrui
DEV-C++
CSP蒙题技巧
FFT
云斗学院
用户名:liuhongrui 密码123qwe
link
排列组合知识点
oiwiki
CSP-J初赛知识点
CSP-S初赛知识点
十大排序
#include <bits/stdc++.h>
using namespace std;
int main()
{
freopen(".in","r",stdin);
freopen(".out","w",stdout);
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
return 0;
}#include <bits/stdc++.h>
using namespace std;
//找最大公约数 板子
//函数板子: __gcd(变量,变量)
int main()
{
int a,b;
cin >> a >> b;
cout << __gcd(a,b);
return 0;
}#include <iostream>
#define int long long
//将所有的int都变成long long
using namespace std;
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
//减少时间复杂度
return 0;
}
去重代码:
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n;
//P11228
signed main()
{
set <string> S;
//set(去重)集合
//<(这里面是变量类型)>
int n;
cin >> n;
for(int i=1;i<=n;i++)
{
string s;
cin >> s;
S.insert(s);
//insert是放入/存入这个牌,同时去重
}
cout << 52-S.size();
return 0;
}一些开头试:
#include <iostream>//支持cin cout
#include <cmath>//支持floor ceil
#include <string.h>//支持 memset
#include <algorithm>//支持sort count set find
#include <stdio.h>//支持 scanf ptintf
#include <bits/stdc++.h>//万能
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
return 0;
} #include <bits/stdc++.h>
#define int long long
using namespace std;
int n,m;
string a,b;
signed main()
{
cin.tie(nullptr)->ios::sync_with_stdio(false);
cout.tie(nullptr)->ios::sync_with_stdio(false);
//两个都可以减少时间复杂度
//区别 :上面的会报错(我也不知道为啥)
// 下面的没事
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
return 0;
}位运算:
a >> b -> a / (2^b)
a << b -> a * (2^b)
a & a =