用 new 在堆上开数组 👁️ 1 人浏览 💬 0 人评论 ❤️ 添加收藏 补全:用 new int[n] 在堆上开 500 万个 int,填入 0..n-1 并求和,最后 delete[] 归还。输出总和。(本题用 g++ -std=c++17 -O0 编译。)
全部评论