結果
問題 | No.2322 MMA文字列 |
ユーザー |
|
提出日時 | 2023-05-28 13:34:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 745 ms |
コンパイル使用メモリ | 63,360 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 20:56:52 |
合計ジャッジ時間 | 1,207 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
#include <iostream> #include <string> using namespace std; #define i64 int_fast64_t const i64 INF = INT64_MAX; const i64 ERR = INT64_MIN; const i64 MOD = 998244353; int main() { string S; cin >> S; if (S.at(0) == S.at(1) && S.at(0) != S.at(2)){ cout << "Yes" << endl; } else { cout << "No" << endl; } }