参考程序:
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n; // 读入奇数 n
// 外层循环控制每一行
for (int i = 0; i < n; ++i) {
// 内层循环控制
本文涉及知识点C++动态规划
P11188 「KDOI-10」商店砍价
题目背景English Statement. You must submit your code at the Chinese version of the statement.您可以点击 这里 下载本场比赛的选手文件。You can click here to download all tasks and