結果
問題 | No.2322 MMA文字列 |
ユーザー |
![]() |
提出日時 | 2023-05-28 13:34:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 365 bytes |
コンパイル時間 | 2,195 ms |
コンパイル使用メモリ | 194,256 KB |
最終ジャッジ日時 | 2025-02-13 09:52:59 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> #define mrep(i, s, n) for (int i = (s); i < (int)(n); i++) #define rep(i, n) mrep(i, 0, n) using namespace std; using ll = long long; const int INF = int(1e+9)+1; const ll INFL = ll(1e+18)+1; int main() { string s; cin >> s; string ans = "No"; if (s[0] == s[1] && s[1] != s[2]) {ans = "Yes";} cout << ans << endl; }