結果
| 問題 |
No.2322 MMA文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-29 15:14:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 51 ms / 2,000 ms |
| コード長 | 101 bytes |
| コンパイル時間 | 643 ms |
| コンパイル使用メモリ | 82,404 KB |
| 実行使用メモリ | 54,656 KB |
| 最終ジャッジ日時 | 2024-10-08 00:45:07 |
| 合計ジャッジ時間 | 2,861 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
from collections import Counter
s=input()
print("Yes" if s[0]==s[1] and len(Counter(s))==2 else "No")