結果

問題 No.2322 MMA文字列
ユーザー elphe
提出日時 2025-03-31 19:03:02
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 806 ms
コンパイル使用メモリ 78,616 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-31 19:03:05
合計ジャッジ時間 1,974 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 14 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdint>

using namespace std;

static inline constexpr string solve(const string& S) noexcept
{
	if (S[0] == S[1]) return "Yes"s;
	else return "No"s;
}

int main()
{
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	string S;
	S.reserve(3);
	cin >> S;

	cout << solve(S) << '\n';
	return 0;
}
0