結果

問題 No.2322 MMA文字列
コンテスト
ユーザー Moleigh-Lv563
提出日時 2023-05-28 13:34:29
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 323 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 398 ms
コンパイル使用メモリ 62,464 KB
最終ジャッジ日時 2026-06-01 17:25:58
合計ジャッジ時間 1,006 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp:6:13: error: 'int_fast64_t' does not name a type
    6 | #define i64 int_fast64_t
      |             ^~~~~~~~~~~~
main.cpp:7:7: note: in expansion of macro 'i64'
    7 | const i64 INF = INT64_MAX;
      |       ^~~
main.cpp:6:13: error: 'int_fast64_t' does not name a type
    6 | #define i64 int_fast64_t
      |             ^~~~~~~~~~~~
main.cpp:8:7: note: in expansion of macro 'i64'
    8 | const i64 ERR = INT64_MIN;
      |       ^~~
main.cpp:6:13: error: 'int_fast64_t' does not name a type
    6 | #define i64 int_fast64_t
      |             ^~~~~~~~~~~~
main.cpp:9:7: note: in expansion of macro 'i64'
    9 | const i64 MOD = 998244353;
      |       ^~~

ソースコード

diff #
raw source code

#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;
  }
}
0