提交时间:2023-02-02 11:39:43
运行 ID: 7235
#include<bits/stdc++.h> using namespace std; int main() { int n,sum=2; cin>>n; if(n>0){ sum+=2*n-1; cout<<sum; } else{ cout<<sum; } return 0; }