| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 375106 | vonatlus | Sifra (COCI21_sifra) | C++17 | 1 ms | 492 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/// vonat1us 
#pragma GCC optimize("O3")
//#pragma comment(linker, "/STACK:36777216")
#include<bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define sz(x) (int) x.size()
#define all(z) (z).begin(), (z).end()
 
using namespace std;
using ll = long long;
using pii = pair<int, int>;                                   
const int MOD = 1e9 + 7; 
const int INF = 1e9 + 1e2;
  
//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void fin() {
#ifdef AM
    freopen(".in", "r", stdin);
#endif        
}                   
const bool flag = 0;
const int N = 1e5+10;
void ma1n() {
    string s;
    cin >> s;
    int n = sz(s);
    map<string, int> mp;
    for (int i = 0; i < n; ++i) {
        if ('a' <= s[i] && s[i] <= 'z') continue;
        int j = i;
        while (j < n && '0' <= s[j] && s[j] <= '9') {
            j++;
        }
        mp[s.substr(i, j-i)] = 1;
        i = j-1;
    }
    cout << sz(mp);
} 
int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(nullptr), fin();
    int ts = 1;
    if (flag) {
        cin >> ts;
    }
    while (ts--) {
        ma1n(); 
    }
    return 0;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
