| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1294025 | ako_aqsin | Kangaroo (CEOI16_kangaroo) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define f first
#define s second
#define pb push_back
#define yes cout << "yes" << endl;
#define YES cout << "YES" << endl;
#define no cout << "no" << endl;
#define NO cout << "NO" << endl;
void never_give_up() {
int n, s, f;
cin >> n >> s >> f;
if(n == 2){
cout << 1 << endl;
return;
}
n -= 2;
int k = 1;
for(int i = 2; i <= n; i++){
k = k * i % ((int)1e9 + 7);
}
cout << k << endl;
}
void You_can_do_it() {
}
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
kangaroo.in
int THE_wasd = 1;
//cin >> THE_wasd;
while(THE_wasd--){
never_give_up();
//You_can_do_it();
}
}
