結果
| 問題 |
No.2715 Unique Chimatagram
|
| コンテスト | |
| ユーザー |
hatsuka_iwa
|
| 提出日時 | 2024-04-05 21:34:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 351 bytes |
| コンパイル時間 | 1,852 ms |
| コンパイル使用メモリ | 177,712 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-01 01:47:38 |
| 合計ジャッジ時間 | 3,644 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N; cin >> N;
map<string, int> M;
for (int i = 0; i < N; i++) {
string S; cin >> S;
sort(S.begin(), S.end());
M[S]++;
}
for (pair<string, int> P : M) {
if (P.second == 1) {
cout << P.first + 'a' << endl;
return 0;
}
}
cout << -1 << endl;
}
hatsuka_iwa