結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
umezo
|
| 提出日時 | 2024-04-05 22:53:42 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 559 bytes |
| 記録 | |
| コンパイル時間 | 3,412 ms |
| コンパイル使用メモリ | 259,192 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-10-01 02:55:50 |
| 合計ジャッジ時間 | 5,552 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 WA * 4 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
template <class T> using V=vector<T>;
template <class T> using VV=V<V<T>>; //B(n,V<int>(n))
int main(){
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n;
cin>>n;
V<string> S(n);
map<string,int> m;
rep(i,n){
cin>>S[i];
sort(ALL(S[i]));
m[S[i]]++;
}
for(auto [a,b]:m){
if(b==1){
cout<<a<<'a'<<endl;
return 0;
}
}
cout<<-1<<endl;
return 0;
}
umezo