結果
| 問題 |
No.587 七対子
|
| コンテスト | |
| ユーザー |
liny_tail
|
| 提出日時 | 2020-09-17 15:37:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 244 bytes |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-19 20:19:16 |
| 合計ジャッジ時間 | 2,034 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
S = input().strip()
dic = {}
for i in S:
try:
dic[i] += 1
except:
dic[i] = 1
if len(dic) != 7:
print('Impossible')
exit(0)
lst = [i for i in dic if dic[i] == 1]
if len(lst) > 1:
print('Impossible')
exit(0)
print(lst[0])
liny_tail