Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
46692 | zhouhuanyu 玙静 | 求和 | C++ | Accepted | 0 MS | 248 KB | 151 | 2024-05-05 09:17:37 |
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int n1 = n - 1; int n2 = n + 1; cout << n1 + n2; return 0; }