結果
| 問題 |
No.587 七対子
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-02-13 19:03:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 435 bytes |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 60,124 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 05:33:14 |
| 合計ジャッジ時間 | 1,811 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 WA * 9 |
ソースコード
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
int table[26]={},count=-1;
char out;
string str;
cin >> str;
for(int i=0;str[i]!='\0';i++){
table[str[i]-'a']++;
}
for(int i=0;i<26;i++){
if(table[i]%2==1){
out = 'a' + i;
count++;
}
}
if(count) cout << "Impossible" << endl;
else cout << out << endl;
}
focus