Skip to content

Instantly share code, notes, and snippets.

View burning-croissant's full-sized avatar

Burning Croissant burning-croissant

View GitHub Profile
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int N; // 로프 개수
vector<int> rope; // 로프 한계 무게가 저장됨
bool compare_rope(int r1, int r2){
if(r1 > r2) return true;
#include <iostream>
#include <vector>
using namespace std;
int T; // 테스트 횟수
int L; // 막대 사이즈
int N; // 개미수
vector<int> positions; // 입력값들이 저장됨
vector<int> earlies; // 최소시간들이 저장됨