| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1344301 | gkos5678 | Dijamant (COI16_dijament) | C++20 | 52 ms | 552 KiB |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef vector<string> vstr;
int n;
map<string, int> m;
vstr vp;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin >> n;
for (int i = 0; i < n; i++){
string k, dv, p;
cin >> k >> dv;
bool ok = (m[k] == 0);
vp.clear();
while(true){
cin >> p;
if (p == ";") break;
vp.pb(p);
ok &= (m[p] == 1);
}
if (!ok){
cout << "greska\n";
continue;
}
cout << "ok\n";
m[k] = 1;
}
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
