2902 KMP는 왜 KMP일까? xxxx 0001-01-01 58 words One minute Contents 풀이: 코드: https://www.acmicpc.net/problem/2902 풀이: 대문자를 출력 코드: 1 2 3 4 5 6 7 8 9 10 11 12 #include <iostream> #include <string> using namespace std; string a; int main(void) { cin >> a; for (int i = 0; i < a.length(); i++) { if (a[i] > 64 && a[i] < 91) cout << a[i]; } cout << endl; } Please enable JavaScript to view the comments powered by Disqus.