제출 #345247

#제출 시각아이디문제언어결과실행 시간메모리
345247mansur결혼 문제 (IZhO14_marriage)C++14
4 / 100
2 ms364 KiB
#include<bits/stdc++.h>
using namespace std;
 
#define all(a) a.begin(),a.end()
#define ll long long
#define pb push_back
#define nl '\n'
#define popb pop_back()
#define sz size()
#define ld long double
#define ull unsigned long long
#define F first
#define S second
#define fix fixed<<setprecision
#define pii pair<int,int>
#define E exit (0)
#define int long long
const int inf=1e9;
signed main() {
	//freopen("planting.in","r",stdin);
	//freopen("planting.out","w",stdout);
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	srand(time(0));
	int n;
	cin>>n;
	cout<<1+rand()%(n-1*(n)/2);
}         
#Verdict Execution timeMemoryGrader output
Fetching results...