답안 #1024493

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1024493 2024-07-16T06:02:02 Z stdfloat Dijamant (COI16_dijament) C++17
27 / 100
60 ms 424 KB
#include <bits/stdc++.h>
using namespace std;

using ll = long long;

const int N = (int)1e2 + 1;

int main() {
    ios::sync_with_stdio(false); cin.tie(nullptr);

    int n;
    cin >> n;

    vector<int> E[n];
    map<string, int> m;
    for (int i = 0; i < n; i++) {
        string s;
        cin >> s;

        vector<int> v;
        bool tr = (m.find(s) == m.end());
        while (true) {
            string t;
            cin >> t;

            if (t == ";") break;
            if (!tr || t == ":") continue;

            tr = (m.find(t) != m.end());
        }

        if (!tr) cout << "greska\n";
        else {
            cout << "ok\n";
            m[s] = (int)m.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
# 결과 실행 시간 메모리 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 1 ms 348 KB Output is correct
7 Correct 1 ms 424 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 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 1 ms 348 KB Output is correct
7 Correct 1 ms 424 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Incorrect 0 ms 348 KB Output isn't correct
12 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 60 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -