# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
668654 | nolimiya | 운세 보기 2 (JOI14_fortune_telling2) | C++14 | 203 ms | 14788 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include <math.h>
//in the name of god,aka allah
//**gray sety orz**
using namespace std;
#define pi pair<int , int>
#define pii pair<long long , pair<long long , long long>>
const int maxm = 3e5 + 5;
const long long mod = 1e9 + 7 ;
typedef long long ll;
ll n,m;
bool isval(int mid){
//cout << mid <<" " << mid*mid-mid <<endl;
if (((mid-1)*mid)/2 < m) return 0;
return 1;
}
int darage[maxm];
ll ss;
bool mm;
pi pedaret[maxm*2];
int rp[maxm*2];
pi w[maxm];
//ll rw[maxm][maxm];
bool cmp(pi x , pi y){
return max(x.first,x.second)>max(y.first,y.second);
}
void build(int v=1 , int l=1 , int r=m+1){
if(r-l==1){ rp[v] = 0, pedaret[v]={darage[l],l}; return; }
int mid = (l+r)/2;
build(v*2,l,mid) , build(v*2+1,mid,r);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |