結果

問題 No.2715 Unique Chimatagram
ユーザー twooimp2
提出日時 2024-04-05 22:48:32
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 592 bytes
コンパイル時間 26,213 ms
コンパイル使用メモリ 358,960 KB
最終ジャッジ日時 2025-02-20 21:53:37
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 4 WA * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;
using namespace atcoder;
using ll=long long;

void IO(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
}

int main(){
  IO();
  ll n;
  cin>>n;
  map<string,ll> mp;
  for(ll i=0;i<n;i++){
    string s;
    cin>>s;
    sort(s.begin(),s.end());
    mp[s]++;
  }
  for(auto p:mp){
    auto [k,v]=p;
    if(v==1){
      string u="owerfnuhifzvltuvpwimfjzmwoj";
      cout<<k<<u<<endl;
      exit(0);
    }
  }
  cout<<-1<<endl;
}
0