結果
問題 |
No.2322 MMA文字列
|
ユーザー |
|
提出日時 | 2023-05-28 13:30:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 838 bytes |
コンパイル時間 | 1,862 ms |
コンパイル使用メモリ | 192,740 KB |
最終ジャッジ日時 | 2025-02-13 09:40:00 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 14 WA * 5 |
ソースコード
#include <bits/stdc++.h> #define _overload3(_1,_2,_3,name,...) name #define FOR(i,a,b) for(int i=int(a);i<int(b);++i) #define IFOR(i,a,b) for(int i=int(b)-1;i>=int(a);--i) #define REP(i,n) FOR(i,0,n) #define IREP(i,n) IFOR(i,0,n) #define rep(...) _overload3(__VA_ARGS__,FOR,REP,)(__VA_ARGS__) #define irep(...) _overload3(__VA_ARGS__,IFOR,IREP,)(__VA_ARGS__) #define all(v) begin(v), end(v) using namespace std; using ll = long long; using Graph2 = vector<vector<int>>; constexpr int INF32 = 1<<29; constexpr ll INF64 = 1LL<<60; template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } int main() { string s; cin >> s; cout << (s[0] == s[1] ? "Yes" : "No") << endl; return 0; }