結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-05 23:05:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 411 bytes |
| 記録 | |
| コンパイル時間 | 2,539 ms |
| コンパイル使用メモリ | 205,808 KB |
| 最終ジャッジ日時 | 2025-02-20 21:57:20 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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++)
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int N;
cin>>N;
string T;
map<string,int> S;
while(cin>>T){
sort(T.begin(),T.end());
S[T]++;
}
for(auto s:S)if(s.second==1){
cout<<s.first<<"a"<<endl;
return 0;
}
cout<<-1<<endl;
}