| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1307469 | ThylOne | Hack (APIO25_hack) | C++20 | 28 ms | 4384 KiB |
#include "hack.h"
#include <bits/stdc++.h>
using namespace std;
int hack(){
const int MAXN = 1e6+1;
int low = 2;
int high = 5e5;
int cost = 0;
while((high-low)>1){
int mid = (low+high)/2;
vector<long long> x;
x.push_back(1);
for(int i = low ; i <= mid+1; i++)
x.push_back(i);
cost += x.size();
if(collisions(x)){
high = mid;
}else{
low = mid;
}
}
return low+1;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
