| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1334284 | Zone_zonee | Vještica (COCI16_vjestica) | C++20 | 127 ms | 131072 KiB |
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
set<string> s;
s.insert("");
while(n--){
string str;
cin >> str;
sort(str.begin(), str.end());
string temp = "";
for(int i = 0; i < str.size(); ++i){
temp += str[i];
s.insert(temp);
}
}
cout << s.size() << '\n';
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
