| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1368165 | mikasa | Hack (APIO25_hack) | C++20 | 1 ms | 344 KiB |
#include "hack.h"
#include <vector>
using namespace std;
long long m = 0;
int hack(){
volatile int* bss = (volatile int*)&m;
const int RADI = 200;
vector<int> snap(RADI*2);
for (int i=-RADI;i<RADI;++i) {
snap[i+RADI]=bss[i];
}
collisions({1});
volatile int* ptr=nullptr;
for (int i=-RADI;i<RADI;++i) {
if (bss[i]==snap[i+RADI]+1){
ptr=&bss[i];
break;
}
}
if (ptr!=nullptr) {
*ptr=0;
int n = *(ptr-1);
if (n<=0) {
n=*(ptr+1);
}
return n;
}
}컴파일 시 표준 에러 (stderr) 메시지
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
