結果
| 問題 | No.2322 MMA文字列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-30 16:47:37 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 2,547 ms |
| コンパイル使用メモリ | 348,676 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-30 16:47:43 |
| 合計ジャッジ時間 | 3,367 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
str s;
cin >> s;
if ((s[0] == s[1] && s[1] != s[2]) || (s[1] == s[2] && s[2] != s[0]) || (s[0] == s[2] && s[2] != s[1])) cout << "Yes\n";
else cout << "No\n";
return 0;
}