This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int T; // 테스트 횟수 | |
int L; // 막대 사이즈 | |
int N; // 개미수 | |
vector<int> positions; // 입력값들이 저장됨 | |
vector<int> earlies; // 최소시간들이 저장됨 |
NewerOlder