結果
| 問題 |
No.587 七対子
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-05-23 03:42:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 231 bytes |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-20 18:45:15 |
| 合計ジャッジ時間 | 2,693 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
from collections import Counter
S=input()
C=Counter(S)
two=0
one=[]
for c in C:
if C[c]==2:
two+=1
elif C[c]==1:
one.append(c)
if two==6 and len(one)==1:
print(one[0])
else:
print("Impossible")
titia