結果
| 問題 |
No.548 国士無双
|
| コンテスト | |
| ユーザー |
mag
|
| 提出日時 | 2020-09-09 04:31:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 689 bytes |
| コンパイル時間 | 1,723 ms |
| コンパイル使用メモリ | 173,452 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 23:21:42 |
| 合計ジャッジ時間 | 2,720 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
#define rep2(i, a, n) for(int i = (a); i < (n); i++)
#define rep(i, n) rep2(i,0,n)
template<typename S,typename T,typename U>void flagfunc1(S flag,T A,U B){flag?cout<<A<<'\n':cout<<B<<'\n';}
int main(){
cin.tie(nullptr);ios_base::sync_with_stdio(false);
string s;cin>>s;
map<char,int> map;
rep(i,13)map[s[i]]++;
int cnt=map.size();
//cnt==12or13
if(cnt==12){
rep(i,13){
char hoge=i+'a';
if(map[hoge]==0){
cout<<hoge<<endl;
}
}
}else if(cnt==13){
rep(i,13){
char hoge=i+'a';
cout<<hoge<<endl;
}
//cnt<12
}else{
cout<<"Impossible"<<endl;
}
}
mag