結果
| 問題 | No.587 七対子 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-20 00:03:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 85,216 KB |
| 実行使用メモリ | 137,516 KB |
| 最終ジャッジ日時 | 2026-04-02 18:08:59 |
| 合計ジャッジ時間 | 1,878 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
#!/usr/bin/env python
slist = list(input())
num1 = []
for s in set(slist):
if slist.count(s) >= 3:
print('Impossible')
exit()
elif slist.count(s) == 1:
num1.append(s)
if len(num1) == 1:
print(num1[0])
else:
print('Impossible')