提交时间:2024-02-07 22:25:35
运行 ID: 40191
#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; }