Submission #1024493

#TimeUsernameProblemLanguageResultExecution timeMemory
1024493stdfloatDijamant (COI16_dijament)C++17
27 / 100
60 ms424 KiB
#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(); } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...