답안 #898520

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
898520 2024-01-04T20:29:09 Z vjudge1 Sifra (COCI21_sifra) C++17
50 / 50
0 ms 600 KB
#include<bits/stdc++.h>
using namespace std;
set<string> st;
int main() {
    string str, str2;
    cin >> str;
    for(auto i: str) {
        if(i<'a')
            str2+=i;
        else
            st.insert(str2),str2="";
    }
    st.insert(str2);
    st.erase("");
    cout << st.size();
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 600 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct