这里是浅碎呀!!!

初来乍到,请多多关照
记录自己成长的过程!
2023.4.7 加油,目前还是蛮菜的呀

本博客的加密文章请联系本人获取密码!

Codeforces - QianSui
Atcoder - qiansui

注意事项:
1.先把题目看清再开始做啊!!!不然你怎么做都是错的啊!!!
2.注意数据范围!!! 1e5 * 1e5 就爆 int 啦 ~
3.注意答案的初值问题,例如答案取大时,初始设置的答案需要足够小!

摘记:

  • 辅助工具

codeforces 估分插件
手把手教你设置Dev-c++支持编译C++20标准

  • 计算运行时间
signed main(){
	clock_t st = clock(), ed;
	ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
	int _ = 1;
	// cin >> _;
	while(_ --){
		solve();
	}
	ed = clock();
	cout << fixed << setprecision(3) << "Runtime: " << (double)(ed - st) / CLOCKS_PER_SEC << "s\n";
	return 0;
}
  • C++ 随机数
srand(time(nullptr));
a = rand() % mod + 1;
  • 文件读入读出
// freopen("in.txt", "r", stdin);
// freopen("out.txt", "w", stdout);
  • 公式内换行的可能实现办法

\[\begin{aligned} 有A(n)=A(n-1)*B \\ B=123 \end{aligned} \]

  • 阿巴阿巴

\[T(n)= \begin{cases} 1, & \text {n = 1} \\ 2T(n / 2) + n, & \text{n > 1} \end{cases} \]

方法一:

\[ f(x)=\left\{ \begin{aligned} x & = & \cos(t) \\ y & = & \sin(t) \\ z & = & \frac xy \end{aligned} \right. \]

方法二:

\[ F^{HLLC}=\left\{ \begin{array}{rcl} F_L & & {0 < S_L}\\ F^*_L & & {S_L \leq 0 < S_M}\\ F^*_R & & {S_M \leq 0 < S_R}\\ F_R & & {S_R \leq 0} \end{array} \right. \]

方法三:

\[f(x)= \begin{cases} 0& \text{x=0}\\ 1& \text{x!=0} \end{cases}\]

posted on 2022-07-10 13:16  Qiansui  阅读(100)  评论(2编辑  收藏  举报