結果
問題 | No.548 国士無双 |
ユーザー |
![]() |
提出日時 | 2021-03-02 21:04:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 469 bytes |
コンパイル時間 | 1,798 ms |
コンパイル使用メモリ | 200,612 KB |
最終ジャッジ日時 | 2025-01-19 09:33:28 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<n;i++) int main(){ map<char,int>mp; string s; cin>>s; rep(i,13) mp[s.at(i)]++; if(mp.size()==13){ char c='a'; rep(i,13){ cout<<c<<endl; c++; } return 0; } if(mp.size()==12){ for(char a='a';a<='m';a++){ if(mp[a]==0){ cout<<a<<endl; return 0; } } } cout<<"Impossible"<<endl; return 0; }