ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 백준 2902번 C++ 풀이
    카테고리 없음 2018. 11. 3. 22:18
    #include <iostream>
    #include <algorithm>
    #include <queue>
    using namespace std;
    int buffer[1001];
    int dp[1001];
    int main(){
    cin.tie(NULL);
    ios::sync_with_stdio(false);
    int n;
    string a;

    cin >> a;
    int size = a.length();
    for (auto i=0; i<size; i++){
    char temp = a[i];
    if ('A' <=temp && temp <= 'Z'){
    cout << temp;
    }
    }
    return 0;
    }


Designed by Tistory.