# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
675055 | numberes | Aliens (IOI16_aliens) | C++17 | 206 ms | 18020 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/**
* @date 2022-12-26 10:42:24
* @author numberes
* 煮不在乎.RAmen!
*/
#include<bits/stdc++.h>
#include "aliens.h"
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define pii pair<int,int>
#define ll long long
using namespace std;
ll g[1000005];
int t[1000005],dq[1000005],dl,dr;
int n,m,k;
int l[1000005],r[1000005],p[1000005];
struct line{
ll k,b;
}li[1000005];
long double itsect(int a,int b){
return (long double)(li[b].b-li[a].b)/(li[a].k-li[b].k);
}
void calc(ll c){
memset(g,0,sizeof(g));memset(t,0,sizeof(t));
dl=dr=1;dq[1]=1;
li[1].k=-2*(ll)(l[1]-1);
li[1].b=g[1]+(ll)(l[1]-1)*(ll)(l[1]-1)+c;
for(int i=2;i<=n+1;i++){
# | 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... |