上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 43 下一页
摘要: 我已经在博客里面发布了好几篇 CLion 使用笔记了,没追究这是第几篇,姑且算作第三篇。 我的 CLion 是搭配了 "MSYS2" 和 "Conan" 使用的。MSYS2 提供 C++ toolchain。Conan 作为 C++ 包管理工具,用它可以方便地安装 Boost 等 C++ 库。 MS 阅读全文
posted @ 2019-05-30 03:26 Pat 阅读(2267) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1158/problem/C 题目 已知 $p_1, p_2, \dots, p_n$ 是 $1$ 到 $n$ 的一个排列。 给出关于这个未知排列的一些描述:对于某些下标 $i$,$p_i$ 右边第一个大于 $p_i$ 的数的下标是 $R 阅读全文
posted @ 2019-05-17 00:54 Pat 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 在 Windows CMD 执行 ,出现如下错误:” [WinError 10061] 由于目标计算机积极拒绝,无法连接”,原因是我之前用的源无法访问了。我用的源是上海大学开源镜像站(https://mirrors.shuosc.org) 这个地址在我写这篇随笔时仍然无法访问。 我把源换成 "TUN 阅读全文
posted @ 2019-05-01 17:00 Pat 阅读(944) 评论(0) 推荐(0) 编辑
摘要: "题目" 题目大意 给定一个长为 $n$($2 \le n \le 100$)的01串 $S$ 。对 $S$ 进行 $k$($1 \le k \le 10^9$)次操作:等概率地选取两个下标 $i, j$($1 \le i 阅读全文
posted @ 2019-04-19 03:26 Pat 阅读(323) 评论(0) 推荐(0) 编辑
摘要: ```c++ include include using namespace std; struct A; struct B; struct A { shared_ptr B_ptr; A() { cout A_ptr; B() { cout ap(new A()); // ap 的引用计数是1 s 阅读全文
posted @ 2019-04-08 23:41 Pat 阅读(680) 评论(2) 推荐(0) 编辑
摘要: Separate compilation let us split our programs into several files, each of which can be compiled independently. allows programs to be written in logic 阅读全文
posted @ 2019-04-08 23:37 Pat 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 此题是 2018 年 ICPC Asia Beijing Regional Contest 的 C 题。 题目大意 求斜边长度不超过 $n$($ n \le 10^9$) 的勾股数的数量。不计两直角边的顺序,即勾股数 $(a, b, c)$ 和 $(b, a, c)$ 视作同一组。 分析 这是一道颇 阅读全文
posted @ 2019-03-31 22:01 Pat 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 打/补 AtCoder 比赛时遇到的一些神题。 阅读全文
posted @ 2019-03-31 10:22 Pat 阅读(1432) 评论(0) 推荐(0) 编辑
摘要: As we know, in C++, for a variable of a pointer (or iterator) type, the expression returns a reference to the object that points to. Suppose the objec 阅读全文
posted @ 2019-03-26 13:21 Pat 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 本文是一篇长文,尚未完成。 引子 一 算法竞赛中常见一类计数问题: 函数 \(g : \mathbb Z\_{\ge 1} \to \mathbb Z\_{\ge 0}\) 已知。函数 \(f : \mathbb Z_{\ge 1} \to \mathbb Z_{\ge 0}\), $f(n) := 阅读全文
posted @ 2019-03-15 20:57 Pat 阅读(779) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 43 下一页