| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1365397 | srividya_06 | Hack (APIO25_hack) | C++20 | 147 ms | 4428 KiB |
#include "hack.h"
#include <bits/stdc++.h>
#define REP(i,a,b) for(int i = a; i<b; i++)
#define RREP(i,a,b) for(int i = a; i<b; i--)
typedef long long ll;
using namespace std;
int hack(){
vector<long long> x;
ll l = 2, r = 500000, res;
while(l<=r){
x.clear();
ll mid = (l+r)/2;
REP(i,1,mid+1) x.push_back(i);
ll val = collisions(x);
if(val == 0ll){
res = mid;
l = mid+1;
}
else r = mid-1;
}
return res;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
