【codeforces】964A-Splits

http://codeforces.com/problemset/problem/964/A

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int inf = 0x3f3f3f3f;
int sum[20][20];  
/*void powerinit(){for(int i=1;i<10;i++){  sum[i][0]=1;  for(int j=1;j<=9;j++)sum[i][j]=sum[i][j-1]*i; }  }*/
ll gcd(ll a,ll b){return b==0?a:gcd(b,a%b);}
int main() 
{
    //freopen("in.txt","r",stdin); 
    //freopen("out.txt","w",stdout); 
    int n;
    cin>>n;
    cout<<n/2+1<<endl;
    
    return 0;
}

猜你喜欢

转载自www.cnblogs.com/Kohinur/p/8996007.html

相关文章