[백준 20436] ZOAC 3
스터디/알고리즘
2022. 1. 10. 21:37
#include #include #include using namespace std; int main(){ string SL, SR; string str; int time = 0; string keyboard[3][10]={ {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'}, {'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'}, {'z', 'x', 'c', 'v', 'b', 'n', 'm'} }; string Lk[] = {'q', 'w', 'e', 'r', 't', 'a', 's', 'd', 'f', 'g', 'z', 'x', 'c', 'v'}; string Rk[] = {'y', 'u', 'i', 'o', 'p', 'h', 'j'..
[백준 1158] 요세푸스 문제
스터디/알고리즘
2022. 1. 6. 00:43
#include #include using namespace std; int main(){ int N, K; queuecircle; cin >> N >> K; for(int i=0; i