11 2024 档案
摘要:D. Drunken Maze 原题链接 You are given a two-dimensional maze with a start and end position. Your task is to find the fastest way to get from the start to
阅读全文
摘要:nohup 命令 nohup 可以让程序在后台运行并且不会因为关闭终端而中断: nohup command > output.log 2>&1 & command:例如python test.py、bash test.sh 等命令 > output.log:将标准输出重定向到 output.log。
阅读全文
摘要:首先是下标从 \(1\sim n\) ,使用 \(lowbit(x)=x\&\ –x\) template<typename T> class Fenwick{ public: vector<T>fenw; int n; Fenwick(int _n):n(_n){ fenw.resize(n+1)
阅读全文
摘要:有 n 个气球,编号为0 到 n - 1,每个气球上都标有一个数字,这些数字存在数组 nums 中。现在要求戳破所有的气球。戳破第 i 个气球,可以获得 nums[i - 1] * nums[i] * nums[i + 1] 枚硬币。 这里的 i - 1 和 i + 1 代表和 i 相邻的两个气球的
阅读全文

浙公网安备 33010602011771号