結果
| 問題 | No.2715 Unique Chimatagram |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-06 14:35:47 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 2,794 ms |
| コンパイル使用メモリ | 259,588 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 03:51:36 |
| 合計ジャッジ時間 | 8,565 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 3 WA * 37 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;cin>>n;
map<vector<int>,int>mp;
string t;
for(int i=0;i<n;i++){
string s;cin>>s;
if(i==0)t=s;
vector<int>now(26);
for(char c:s)now[c-'a']++;
mp[now]++;
}
if(mp.size()==1){cout<<-1<<endl;return 0;}
else{
string add;
for(int i=0;i<10;i++)add+='a';
cout<<t+add<<endl;
}
}