結果
| 問題 | No.587 七対子 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-12 23:16:12 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 523 ms |
| コンパイル使用メモリ | 20,960 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-08 02:04:48 |
| 合計ジャッジ時間 | 5,532 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 WA * 5 |
ソースコード
def main():
S = input()
new_str = sorted(S)
cnt = 0
ans = ""
for i in range(12):
if new_str[i] == new_str[i + 1]:
cnt += 1
elif new_str.count(new_str[i]) == 1:
ans = new_str[i]
if cnt != 6:
print("Impossible")
else:
print(ans)
if __name__ == "__main__":
main()