P1001 A+B Problem
题解模板。
---
tags: [ ]
---
# [标题]
[描述]
> 难度:入门\
> 算法:模拟\
> 日期:2025-10-25\
> 链接:https://luogu.com.cn/problem/P1001
## 题意简述
## 思路
## 编码
<details>
<summary>用时 内存 </summary>
```cpp showLineNumbers
```
</details>
$$
dp[i]=
\begin{cases}
dp[i-1] & k=0, \\
dp[i-1]+A_i & k=i-1,\\
\max\{dp[i-1],dp[k+1]+A[i]+s_i-s_{k+1}\} & \text{otherwise}.\\
\end{cases}
$$
最简单的题。
难度:入门
算法:模拟
日期:2025-10-25
链接:https://luogu.com.cn/problem/P1001
题意简述
给两个数字 ,输出 。
范围:。
思路
这么简单的题,还有啥思路。。。
编码
用时 41 ms 内存 1.04 MB
/*
* P1001 A+B Problem
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b;
return 0;
}