結果
問題 |
No.587 七対子
|
ユーザー |
![]() |
提出日時 | 2018-06-07 15:29:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 309 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-30 10:29:49 |
合計ジャッジ時間 | 2,101 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 35 |
ソースコード
target = input() dict = {} for char in target: if char in dict: dict[char] +=1 else: dict[char] = 1 print(dict) if len(dict)==7: dict2 = {v:k for k, v in dict.items()} if len(dict2)==2: print(dict2[1]) else: print('Impossible') else: print('Impossible')