| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1361692 | opeleklanos | Hack (APIO25_hack) | C++20 | 81 ms | 428 KiB |
#include <iostream>
#include <vector>
using namespace std;
#include "hack.h"
// int secretNum = 8;
int mx = 1000000;
// int collisions(vector<int> v){
// vector<int> newV(mx+1, 0);
// for(auto i : v) newV[i%secretNum]++;
// int ans = 0;
// for(auto i : newV) ans += max(0, i-1);
// return ans;
// }
int hack(){
for(int i = 2; i<mx; i++){
if(collisions({1, i})) return i-1;
}
return -1;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
