# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
9783 | lemonsqueeze | The last wizard (kriii2_T) | C++98 | 152 ms | 63868 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
const int N = 10000;
const int NUMERIC = 2000000;
typedef long long ll;
const ll MM = 1000000007;
const int S = 2000;
ll pw(ll a, ll b)
{
ll ans = 1, mul = a;
while( b > 0 ){
if( b%2 == 1) ans *= mul;
mul *= mul; b/=2;
ans %= MM; mul %= MM;
}
return ans;
}
ll div(ll a){ return pw(a, MM-2); }
struct data{
data(){}
data(int wi,int su,int ad,bool ch):wi(wi), su(su), ad(ad), ch(ch){}
int wi, su, ad;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |