Skip to content

Instantly share code, notes, and snippets.

View ro0opf's full-sized avatar
😄

Jaehyeok Jo ro0opf

😄
  • Kakaomobility
  • Seoul, Korea
View GitHub Profile
void selectionSort(int arr[], int n) {
int min_idx;
for (int i = 0; i < n - 1; i++) {
min_idx = i;
for (int j = i + 1; j < n; j++) {
res.compare = res.compare+1;
if (arr[j] < arr[min_idx]) {
min_idx = j;
}
}
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <cstring>
#include <map>
#include <stack>
#include <functional>
#include <set>
@ro0opf
ro0opf / problemA
Created March 21, 2019 11:15
2019 kickstart H
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <cstring>
#include <map>
#include <stack>
#include <functional>
#include <set>
import requests
from bs4 import BeautifulSoup as bs
import time
import multiprocessing as mp
import os
import urllib.request
def _get(keyword):
html = requests.get('https://search.naver.com/search.naver?where=image&sm=tab_jum&query=' + keyword).content
soup = bs(html, 'html.parser')
import requests
from bs4 import BeautifulSoup as bs
import time
import multiprocessing as mp
import os
def _get(index, title_list, score_list):
html = requests.get('https://www.jobplanet.co.kr/companies/' + str(index)).content
soup = bs(html, 'html.parser')
import requests
from bs4 import BeautifulSoup as bs
import time
import multiprocessing as mp
import os
def _get(index, title_list, score_list):
html = requests.get('https://www.jobplanet.co.kr/companies/' + str(index)).content
soup = bs(html, 'html.parser')
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <cstring>
#include <map>
#include <stack>
#include <functional>
#include <set>
@ro0opf
ro0opf / 2143.cpp
Created February 27, 2019 07:21
2143
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <cstring>
#include <map>
#include <stack>
#include <functional>
#include <set>