제출 #1117870

#제출 시각아이디문제언어결과실행 시간메모리
1117870vjudge1캥거루 (CEOI16_kangaroo)C++17
0 / 100
1 ms336 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define ld double const int INF = 1e18; const int mod = 12345; signed main() { ios_base::sync_with_stdio(0); cin.tie(0); int n , f , s; cin >> n >> f >> s; int mod = 1e9 + 7; int ans = 1; for(int i = 1;i <= n - 2;i++){ ans = (ans * i) % mod; } cout << ans << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...