[백준/BOJ] 15947번 - 아기 석환 뚜루루 뚜루 (C++)
문제 링크 코드 #include using namespace std; int main(void) { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; vector v = { "baby", "sukhwan", "tururu", "turu", "very", "cute", "tururu", "turu", "in", "bed", "tururu", "turu", "baby", "sukhwan" }; int idx = (n - 1) % 14; string ret = v[idx]; if (ret == "tururu" || ret == "turu") { for (int i = 0; i = 1..
2022. 3. 25.