liginity
liginity
出题人在打包 docker image 时把 `data/` 目录用 COPY 加入了 image 中,并且设置目录拥有者为 judger,目录的权限是 766。 在 `online_judge.py` 中预期使用 `os.makedir()` 来设置 `data` 目录的权限为 700,但是 `os.makedir()` 不改变已存在的目录的权限,见 python 3.11 文档 [os.makedirs](https://docs.python.org/3/library/os.html#os.makedirs)。所以 runner 用户可以读取 `data` 中的内容。...
在 [docs/cpp/modern_cpp/type_traits.md](https://github.com/imarvinle/CSGuide/blob/ba21398cc44e335c749c01b7478e1750588c49e6/docs/cpp/modern_cpp/type_traits.md) 展示如何实现 `is_integral` 模板时,使用了 `std::remove_cv` 模板,这是不应该使用的。对于 `int` 和 `int&` 两个类型,`std::is_integral::value` 分别是真和假。 见 godbolt [例子](https://godbolt.org/z/d3Ws3bqPW)。