P1001 A+B Problem
题解模板。
---
tags: [ ]
---
# [标题]
[描述]
<ProblemInfoCard
difficulty=''
algorithms={['']}
date=''
link='https://luogu.com.cn/problem/'
/>
## 题意简述
## 思路
## 编码
<details>
<summary>用时 内存 </summary>
```cpp showLineNumbers
```
</details>
<ProblemInfoCard /> 的 difficulty 可以是以下值:
gray, red, orange, yellow, green, blue, purple, black
$$
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
题意简述
给两个数字 ,输出 。
范围:。
思路
这么简单的题,还有啥思路。。。
编码
用时 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;
}