| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1345363 | ahmetlbktd4 | Hack (APIO25_hack) | C++20 | 7 ms | 480 KiB |
#include "bits/stdc++.h"
#include "hack.h"
#define ll long long
using namespace std;
bool barla(int m){
for (int t = 0;t < 3;t++){
vector <ll> x;
unordered_set <ll> st;
for (int i = 0;i < 1000;i++){
st.insert(i%m+1);
}
for (auto x1 : st){
x.push_back(x1);
}
if (collisions(x))
return 0;
}
return 1;
}
int hack(){
int l = 2,r = 1e6,p=1;
while (l <= r){
int m = (l+r) >> 1;
if (barla(m)){
l = m+1;
p = m;
}
else r = m-1;
}
return p;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
