我……
学C++,看过(一眼)Python、C#、Java,喜欢使用 和 。
Update 25/12/31:还玩 JE 我的世界;
Update 26/08/03:Phigros
现在快上 ,学校名字经过 加密后是DFF7A58261BFBB86499A765DF0099E249CE90E9C0F0D6856A5EF2410A3D1B0CF,这个学校在2D3B0FD944CCC36B3099F3DB9669DC242909A486209C3810F72E09345492E637省,944FBEB67BCC238B605023D4A5D71DB3DAEB4D6F93929501A631A3D4624DD5AB市。
我参加的比赛
【LGR-223-Div.3】梅拉算智基础赛 #22 & YLLOI Round 1
等级分:
【LGR-234-Div.3】洛谷网校 7 月 CSP-J 模拟月赛 & Cfz Round 6
等级分:
【LGR-288-Div.2】洛谷 7 月月赛 I & lnOI Round 1
等级分:
一些链接
信奥一本通
LaTeX Mathematical Symbols
OI-Wiki
猜盐
查 OI 成绩的
AlgoBeat OJ
方便复制的实用代码
DEBUG符号
#define DEBUG 1
#ifdef DEBUG // 或#ifndef
#else // 如果需要
#endif计时器
auto start = chrono::high_resolution_clock::now();
// 要计时的代码段
auto end = chrono::high_resolution_clock::now();
chrono::duration<double> elapsed = end - start;
cout << "耗时: " << elapsed.count() << " 秒\n";高精度乘法 AI & vector<int> 版
vector<int> gaoindumulty(vector<int> a, vector<int> b) {
int lenA = a.size();
int lenB = b.size();
// 结果最大长度为 lenA + lenB(如 99*99=9801,长度 2+2=4)
vector<int> res(lenA + lenB, 0);
// 逐位相乘,积累结果
for (int i = 0; i < lenA; ++i) {
for (int j = 0; j < lenB; ++j) {
// a[i] * b[j] 的结果先累加到 res[i+j]
res[i + j] += a[i] * b[j];
// 处理进位(先暂存到高一位,后续统一整理)
res[i + j + 1] += res[i + j] / 10;
// 当前位只保留个位数
res[i + j] %= 10;
}
}
// 去除结果末尾多余的 0(如果有的话)
while (res.size() > 1 && res.back() == 0) {
res.pop_back();
}
return res;
}缺省源
//The Best Default Source
#include<iostream> //cin,cout,ios
#include<cstdio> //scanf,printf,freopen
#include<cmath> //?
#include<algorithm> //sort
#include<vector> //vector
#include<utility> //pair
#include<string> //?
#include<iomanip> //fixed>>setprecision()
#include<cstring> //memset,fill
using namespace std;
#define IOS ios::sync_with_stdio(0);cin.tie(0);
#define FIN(name) freopen(name,"r",stdin);
#define FOUT(name) freopen(name,"w",stdout);
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef pair<ll,ll> pll;
typedef vector<ll> vll;
int main(){
IOS;
return 0;
}引用
目前, 0∼99 分为灰名,
100∼119 分为蓝名,
120∼169 分为绿名,
170∼229 分为橙名,
230∼500 分为红名,
