| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1334283 | Zone_zonee | Vještica (COCI16_vjestica) | C++20 | 52 ms | 13220 KiB |
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
set<pair<char, int>> s;
s.insert({' ', 0});
while(n--){
string str;
cin >> str;
sort(str.begin(), str.end());
for(int i = 0; i < str.size(); ++i){
s.insert({str[i], i});
}
}
cout << s.size() << '\n';
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
