#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 time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
384 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
8 |
Correct |
1 ms |
364 KB |
Output is correct |
9 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
512 KB |
Output isn't correct |
11 |
Correct |
1 ms |
364 KB |
Output is correct |
12 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
15 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
16 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
17 |
Incorrect |
0 ms |
364 KB |
Output isn't correct |
18 |
Incorrect |
1 ms |
512 KB |
Output isn't correct |
19 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
20 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
21 |
Incorrect |
2 ms |
364 KB |
Output isn't correct |
22 |
Incorrect |
1 ms |
512 KB |
Output isn't correct |
23 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
24 |
Incorrect |
2 ms |
364 KB |
Output isn't correct |
25 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
26 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
27 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
28 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
29 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
30 |
Incorrect |
0 ms |
364 KB |
Output isn't correct |
31 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
32 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
33 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
34 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
35 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
36 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
37 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
38 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
39 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
40 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
41 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
42 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
43 |
Incorrect |
1 ms |
512 KB |
Output isn't correct |
44 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
45 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
46 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
47 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
48 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
49 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
50 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |