結果
問題 | No.2322 MMA文字列 |
ユーザー |
|
提出日時 | 2023-05-28 13:32:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,115 bytes |
コンパイル時間 | 2,063 ms |
コンパイル使用メモリ | 170,004 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 20:46:54 |
合計ジャッジ時間 | 2,289 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;typedef long double ld;typedef pair<ll, ll> pll;const ll LongINF=1000000000000000000;const int INF=1000000007;const int dx[]={0,1,0,-1};const int dy[]={1,0,-1,0};template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}template <class T, class Y>T GCD(T a, Y b){if(a<b){T c=a;a=b;b=c;}if (a % b == 0){return b;}return GCD(b, a % b);}template<class T,class Y>T LCM(T a,Y b){return (a*b)/GCD(a,b);}void clear(queue<pair<int, int>> &q){queue<pair<int, int>> empty;swap(q, empty);} //queueの中身の型は適時変更を忘れないusing vi=vector<int>;using vii=vector<vi>;#define REP(i,a,b) for(ll i=(a);i<(b);i++)#define rep(i,n) REP(i,0,n)#define pb push_back#define rv reverse#define ALL(a) (a).begin(),(a).end()#define decimal(x) fixed<<setprecision(x)int main(){string S;cin>>S;if(S[0]==S[1]&&S[1]!=S[2])cout<<"Yes"<<endl;else cout<<"No"<<endl;return 0;}/**/