結果
問題 | No.2715 Unique Chimatagram |
ユーザー |
👑 |
提出日時 | 2024-02-07 23:24:32 |
言語 | cLay (20241019-1) |
結果 |
AC
|
実行時間 | 19 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 2,457 ms |
コンパイル使用メモリ | 187,672 KB |
実行使用メモリ | 8,320 KB |
最終ジャッジ日時 | 2024-09-28 12:48:59 |
合計ジャッジ時間 | 4,553 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 40 |
ソースコード
ll@N;map<VI,ll>a;string S;rep(N){rd(S);VI H(26),h;rep(i,S.size())H[S[i]-97]++;rep(i,26)h=H,h[i]++,a[h]++;}auto j=a.begin(),e=a.end();for(;j!=e;j++)if(j->second<2){S="";char c;rep(i,26)REP(j->first[i])S+=c=i+97;wt(S);exit(0);}wt(-1);