結果
問題 | No.2322 MMA文字列 |
ユーザー |
![]() |
提出日時 | 2023-05-28 13:31:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 662 bytes |
コンパイル時間 | 1,782 ms |
コンパイル使用メモリ | 193,472 KB |
最終ジャッジ日時 | 2025-02-13 09:44:11 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> #include <numeric> // #include <atcoder/modint> using namespace std; // using namespace atcoder; // using mint = modint998244353; #define i64 int_fast64_t const i64 INF = INT64_MAX; const i64 ERR = INT64_MIN; const i64 MOD = 998244353; // 切り上げ i64 ceil_devide(i64 x, i64 y) { return (x + y - 1) / y; } // 切り捨て i64 floor_devide(i64 x, i64 y) { return x / y; } i64 sum_linear(i64 n) { return n * (n+1) / 2; } int main() { string s; cin >> s; if (s.at(0) == s.at(1) && s.at(1) != s.at(2)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }