結果
| 問題 | No.587 七対子 |
| コンテスト | |
| ユーザー |
osrgy01
|
| 提出日時 | 2021-03-25 10:49:53 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 542 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-21 09:04:33 |
| 合計ジャッジ時間 | 6,163 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
ans={}
for i in input():
if i not in ans:
ans[i]=1
else:
ans[i]+=1
check=[*ans.values()]
if check.count(2)==6 and check.count(1)==1:
print(*[i for i,j in ans.items() if j==1])
else:
print('Impossible')
osrgy01