백준 알고리즘/링크드 리스트5 백준 2309번 C++ #include #include #include using namespace std; vector v; void sumhundred(int s) {int sum = s; for (int i = 0; i < 8; i++) {for (int j = i + 1; j < 9; j++) {if (sum - v[i] - v[j] == 100) {for (int k = 0; k < 9; k++) {if (k != i && k != j)cout height;v.push_back(height);sum += height;}sort(v.begin(), v.end());sumhundred(sum);} 2019. 1. 2. 백준 1158번 C++ #include #include #include using namespace std; int main(void) {int num, data;queue q; cin >> num >> data;cout 2019. 1. 2. 백준 11866번 C++ #include #include #include using namespace std; int main(void) {int num, data;queue q; cin >> num >> data;cout 2019. 1. 2. 백준 12069번 파이썬 a,b = map(int, input().split())list = [i for i in range(1,(a+1))]ans=[0]*aindex=0delete = b-1while (len(list)!=0): while delete >= len(list): delete = delete - len(list) ans[index] = list[delete] del list[delete] delete =delete + (b-1) index+=1 print("") else: print(ans[i],end=", ") 2018. 9. 17. 이전 1 2 다음