# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
45121 | model_code | The grade (info1cup18_thegrade) | C++17 | 319 ms | 4908 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <algorithm>
#include <cassert>
#define MOD 1000000007LL
using namespace std;
long long fact[1000010], inv[1000010];
int frq[1000010];
long long put (long long n, long long p)
{
long long rez = 1LL;
for (long long i = 0LL; (1LL << i) <= p; i += 1LL)
{
if ((1LL << i) & p) rez *= n, rez %= MOD;
n *= n;
n %= MOD;
}
return rez;
}
int main ()
{
// freopen ("input", "r", stdin);
//freopen ("output4", "w", stdout);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |