buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; #define MAX 1000000007 #define ll long long #define pb push_back #define mp make_pair int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); /*#ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #en...
#include <bits/stdc++.h> using namespace std; #define MAX 1000000007 #define ll long long #define pb push_back #define mp make_pair int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); /*#ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #en...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
95
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); char[] words = new char[6]; for (int i = 0; i < 6; i++) { words[i] = s.charAt(i); } if (words[2] == words[3] || words[4] == words[...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); char[] words = new char[6]; for (int i = 0; i < 6; i++) { words[i] = s.charAt(i); } if (words[2] == words[3] && words[4] == words[...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 106], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 106], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["-", 15, 15, 0, 16, 31, 16, 31, 16, 17, 106], ["+", 15, 15, 0, 16, 31, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 15, 0, 16, 31, 16, 17...
3
178
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; int main() { string s; bool tag = false; cin >> s; if (s.at(2) == s.at(3)) { if (s.at(4) == s.at(5)) { tag = true; } } if (tag == true) { cout << 'Yes' << endl; } else { cout << 'No' << endl; } }
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; int main() { string s; bool tag = false; cin >> s; if (s.at(2) == s.at(3)) { if (s.at(4) == s.at(5)) { tag = true; } } if (tag == true) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
95
#include <iostream> using namespace std; main() { string s; cin >> s; if (s[2] == s[4] && s[3] == s[5]) cout << "Yes" << endl; else cout << "No\n"; return 0; }
#include <iostream> using namespace std; main() { string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes" << endl; else cout << "No\n"; return 0; }
[["-", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13]]
1
59
#include <bits/stdc++.h> #define ll long long #define F(i, n) for (int i = 0; i < n; i++) #define pb push_back #define i64 int64_t #define fi first #define se second using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "YES"; ...
#include <bits/stdc++.h> #define ll long long #define F(i, n) for (int i = 0; i < n; i++) #define pb push_back #define i64 int64_t #define fi first #define se second using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes"; ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 57, 75, 76, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
1
91
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() #define MOD 1000000007 using ll = long long; using P = pair<int, int>; using vi = vector<int>; using vl = vector<ll>; using vs = vector...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() #define MOD 1000000007 using ll = long long; using P = pair<int, int>; using vi = vector<int>; using vl = vector<ll>; using vs = vector...
[["-", 12, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["+", 12, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["-", 12, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 12, 16, 31, 16, 12, 69, 341, 342, 0, 13]]
1
152
n=int(input()) a = list(map(int,input().split())) # oを選択 xを非選択とする 左から見て # oxoxoxoxoxo に x を1つか2つ挿入することを考える # 状態を4つ設定 (最後がxかoか)(挿入ずみのxの数)の形式でやる #a=[1,2,3,4,5,6,7] x0,x1,x2,o0,o1,o2=a[0],0,0,-10**18,a[1],-10**18 for i in a[2:]: x0,x1,x2,o0,o1,o2=o0,max(o1,x0),max(o2,x1),x0+i,x1+i,x2+i if n%2==0: print(max(x0,x1,...
n=int(input()) a = list(map(int,input().split())) # oを選択 xを非選択とする 左から見て # oxoxoxoxoxo に x を1つか2つ挿入することを考える # 状態を4つ設定 (最後がxかoか)(挿入ずみのxの数)の形式でやる #a=[1,2,3,4,5,6,7] #n=len(a) x0,x1,x2,o0,o1,o2=a[0],-10**18,0,-10**18,a[1],-10**18 for i in a[2:]: x0,x1,x2,o0,o1,o2=o0,max(o1,x0),max(o2,x1),x0+i,x1+i,x2+i if n%2==0: ...
[["-", 0, 656, 0, 1, 0, 662, 12, 432, 0, 612], ["+", 0, 1, 0, 662, 12, 432, 0, 664, 17, 33], ["+", 0, 662, 12, 432, 0, 664, 28, 657, 31, 612], ["+", 0, 662, 12, 432, 0, 664, 28, 657, 17, 578], ["+", 0, 662, 12, 432, 0, 664, 28, 657, 12, 612]]
5
143
#include <bits/stdc++.h> using namespace std; #define all(V) V.begin(), V.end() #define ll long long #define MOD 998244353 ll dp[3][2][200010]; void chmax(ll &a, ll b) { a = max(a, b); } int main() { for (int i = 0; i < 200010; i++) { for (int j = 0; j < 3; j++) { dp[j][0][i] = dp[j][1][i] = LLONG_MIN / ...
#include <bits/stdc++.h> using namespace std; #define all(V) V.begin(), V.end() #define ll long long #define MOD 998244353 ll dp[4][2][200010]; void chmax(ll &a, ll b) { a = max(a, b); } int main() { for (int i = 0; i < 200010; i++) { for (int j = 0; j < 4; j++) { dp[j][0][i] = dp[j][1][i] = LLONG_MIN / ...
[["-", 0, 43, 49, 80, 49, 80, 49, 80, 81, 13], ["+", 0, 43, 49, 80, 49, 80, 49, 80, 81, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]]
1
518
#include <bits/stdc++.h> using namespace std; #define ll long long int #define mod 1000000007 #define debug(x) cout << #x << " :: " << x << endl; #define debug2(x, y) \ cout << #x << " :: " << x << "\t" << #y << " :: " << y << endl; #define debug3(x, y, z) ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define mod 1000000007 #define debug(x) cout << #x << " :: " << x << endl; #define debug2(x, y) \ cout << #x << " :: " << x << "\t" << #y << " :: " << y << endl; #define debug3(x, y, z) ...
[["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78]]
1
368
#include <bits/stdc++.h> using namespace std; #define ll long long const int N = 200005; ll sum[N], d[N], a[N], n; int main() { cin >> n; for (int i = 1; i <= n; i++) cin >> a[i]; for (int i = 1; i <= n; i++) { if (i % 2 == 0) sum[i] = sum[i - 1] + a[i]; else sum[i] = sum[i - 1]; } for...
#include <bits/stdc++.h> using namespace std; #define ll long long const int N = 200005; ll sum[N], d[N], a[N], n; int main() { cin >> n; for (int i = 1; i <= n; i++) cin >> a[i]; for (int i = 1; i <= n; i++) { if (i % 2 == 1) sum[i] = sum[i - 1] + a[i]; else sum[i] = sum[i - 1]; } for...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
209
/*Code by Codercjh*/ #include <bits/stdc++.h> #define fr(i, a, b) for (int i = (a); i <= (b); ++i) #define rf(i, a, b) for (int i = (a); i >= (b); --i) #define min(a, b) (a < b ? a : b) #define max(a, b) (a > b ? a : b) using namespace std; typedef long long ll; template <typename T> inline void read(T &x) { char c =...
/*Code by Codercjh*/ #include <bits/stdc++.h> #define fr(i, a, b) for (int i = (a); i <= (b); ++i) #define rf(i, a, b) for (int i = (a); i >= (b); --i) #define min(a, b) (a < b ? a : b) #define max(a, b) (a > b ? a : b) using namespace std; typedef long long ll; template <typename T> inline void read(T &x) { char c =...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 67], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
307
#include <algorithm> #include <bitset> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <list>1 #include <map> #include <math.h> #include <queue> #include <utility> #include <vector> //#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using p...
#include <algorithm> #include <bitset> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <list>1 #include <map> #include <math.h> #include <queue> #include <utility> #include <vector> //#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using p...
[["-", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 22]]
1
321
#include <bits/stdc++.h> using namespace std; #define ll long long #define mx 200005 int n, m; int ar[mx]; ll dp[mx], dp1[mx]; bool visit[mx][3]; int main() { scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &ar[i]); } ll re; if (n % 2 == 0) { re = -1e18; for (int i = 0; i < n / 2; i++...
#include <bits/stdc++.h> using namespace std; #define ll long long #define mx 200005 int n, m; int ar[mx]; ll dp[mx], dp1[mx]; bool visit[mx][3]; int main() { scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &ar[i]); } ll re; if (n % 2 == 0) { re = -1e18; for (int i = 0; i < n / 2; i++...
[["-", 64, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 64, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
332
#include <algorithm> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <memory> #include <queue> #include <set> #include <sstream> #include <stack> #include...
#include <algorithm> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <memory> #include <queue> #include <set> #include <sstream> #include <stack> #include...
[["-", 0, 7, 10, 43, 49, 50, 51, 16, 31, 13], ["-", 0, 7, 10, 43, 49, 50, 51, 16, 17, 33]]
1
386
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 2e5 + 5; ll dp[N], a[N], sum[N]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; sum[i] = (i > 2 ? sum[i - 2] : 0) + a[i]; } for (int i = 2; i <= n; i++) { if (i & 1 == 0) dp[i] = max(...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 2e5 + 5; ll dp[N], a[N], sum[N]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; sum[i] = (i > 2 ? sum[i - 2] : 0) + a[i]; } for (int i = 2; i <= n; i++) { if (i & 1) dp[i] = max(dp[i ...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
183
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 200200; const ll Inf = 1e18; int n; int a[N]; ll Dp[N][3]; ll Rec(int i, int j) { if (j < 0) return -Inf; if (i >= n) return j == 0 ? 0 : -Inf; if (Dp[i][j] + 1) return Dp[i][j]; return Dp[i][j] = max(a[i] + Rec...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 200200; const ll Inf = 1e18; int n; int a[N]; ll Dp[N][3]; ll Rec(int i, int j) { if (j < 0) return -Inf; if (i >= n) return j <= 1 ? 0 : -Inf; if (Dp[i][j] + 1) return Dp[i][j]; return Dp[i][j] = max(a[i] + Rec...
[["-", 0, 57, 64, 37, 0, 41, 15, 16, 17, 60], ["-", 0, 57, 64, 37, 0, 41, 15, 16, 12, 13], ["+", 0, 57, 64, 37, 0, 41, 15, 16, 17, 19], ["+", 0, 57, 64, 37, 0, 41, 15, 16, 12, 13]]
1
200
// // select_half.cpp // learningCplusplus // // Created by Tran Duc Chinh on 2020/04/04. // Copyright © 2020 Tran Duc Chinh. All rights reserved. // #include <iostream> #include <math.h> using namespace std; typedef long long ll; ll mod = 1000000007; int main(int argc, const char *argv[]) { int n; std::cin ...
// // select_half.cpp // learningCplusplus // // Created by Tran Duc Chinh on 2020/04/04. // Copyright © 2020 Tran Duc Chinh. All rights reserved. // #include <iostream> #include <math.h> using namespace std; typedef long long ll; ll mod = 1000000007; int main(int argc, const char *argv[]) { int n; std::cin ...
[["-", 0, 11, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 11, 12, 16, 12, 69, 341, 342, 0, 13]]
1
320
#include <algorithm> #include <array> #include <assert.h> #include <bitset> #include <chrono> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <memory> #include <numeric> #include <queue> #include <random> #include...
#include <algorithm> #include <array> #include <assert.h> #include <bitset> #include <chrono> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <memory> #include <numeric> #include <queue> #include <random> #include...
[["-", 12, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["+", 12, 2, 3, 4, 0, 69, 341, 342, 0, 13]]
1
659
#include <algorithm> #include <iostream> #include <string> using namespace std; long long guusuuDP(long long N, long long num[]) { long long ma[N][2]; ma[1][0] = num[0]; ma[1][1] = num[1]; int i; for (i = 1; i <= (N / 2 - 1); i++) { ma[2 * i + 1][0] = ma[2 * i - 1][0] + num[2 * i]; ma[2 * i + 1][1] =...
#include <algorithm> #include <iostream> #include <string> using namespace std; long long guusuuDP(long long N, long long num[]) { long long ma[N][2]; ma[1][0] = num[0]; ma[1][1] = num[1]; int i; for (i = 1; i <= (N / 2 - 1); i++) { ma[2 * i + 1][0] = ma[2 * i - 1][0] + num[2 * i]; ma[2 * i + 1][1] =...
[["-", 0, 1, 0, 11, 31, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 22], ["-", 0, 11, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 12, 16, 31, 69, 341, 342, 0, 16, 31, 22], ["+", 12, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 12, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["-", 0, 11, 12, 16, 31, 2, 3, 4, 0, 2...
1
537
import sys, math def input(): return sys.stdin.readline().strip() def main(): N = int(input()) A = [0] + list(map(int, input().split())) """ dp[i][j] = (1からi番目の数のうちどの2個も連続しないようにj個選んだ時の和の最大) と置くらしい。何故その発想になるんだ?? 最初は左右で分けて尺取りみたいなことをすれば行けると思ったが、左右の分け目を1つずらしたら 最適解がガラッと変わって困った → じゃあDP、って感じなのかなあ...
import sys, math def input(): return sys.stdin.readline().strip() def main(): N = int(input()) A = [0] + list(map(int, input().split())) """ dp[i][j] = (1からi番目の数のうちどの2個も連続しないようにj個選んだ時の和の最大) と置くらしい。何故その発想になるんだ?? 最初は左右で分けて尺取りみたいなことをすれば行けると思ったが、左右の分け目を1つずらしたら 最適解がガラッと変わって困った → じゃあDP、って感じなのかなあ...
[["-", 8, 196, 0, 1, 0, 662, 31, 206, 206, 612], ["+", 8, 196, 0, 1, 0, 662, 31, 206, 206, 612]]
5
278
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <sstream> #include <string> #include <vector> using namespace std; typedef unsigned long long ull; typedef long long ll; const int N = 2e5 + 5; const int inf = 0x3f3f3f3f; vector<int> VR, VG, VB; ll a[...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <sstream> #include <string> #include <vector> using namespace std; typedef unsigned long long ull; typedef long long ll; const int N = 2e5 + 5; const int inf = 0x3f3f3f3f; vector<int> VR, VG, VB; ll a[...
[["+", 8, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 8, 1, 0, 11, 12, 16, 31, 23, 0, 25]]
1
231
#include <bits/stdc++.h> using namespace std; #define int long long const int maxm = 2e5 + 5; int sum[maxm]; int d[maxm]; // d[i]为前i个数取i/2个的最大值 int a[maxm]; signed main() { int n; cin >> n; for (int i = 1; i <= n; i++) cin >> a[i]; for (int i = 1; i <= n; i++) { if (i & 1) sum[i] = sum[i - 1] + a[...
#include <bits/stdc++.h> using namespace std; #define int long long const int maxm = 2e5 + 5; int sum[maxm]; int d[maxm]; // d[i]为前i个数取i/2个的最大值 int a[maxm]; signed main() { int n; cin >> n; for (int i = 1; i <= n; i++) cin >> a[i]; for (int i = 1; i <= n; i++) { if (i & 1) sum[i] = sum[i - 1] + a[...
[["-", 0, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["+", 0, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
211
#include <bits/stdc++.h> #define maxn 200001 #define maxa 201 #define MOD 1000000007 #define INF 1000000000000000000 #define lim 20 using namespace std; #define ll int #define pii pair<ll, ll> #define piii pair<pii, ll> #define ft first #define sd second void fast() { ios_base::sync_with_stdio(false); cin.tie(0)...
#include <bits/stdc++.h> #define maxn 200001 #define maxa 201 #define MOD 1000000007 #define INF 1000000000000000000 #define lim 20 using namespace std; #define ll long long #define pii pair<ll, ll> #define piii pair<pii, ll> #define ft first #define sd second void fast() { ios_base::sync_with_stdio(false); cin....
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
483
#!/usr/bin/python3 n = int(input()) a = tuple(map(int, input().split())) ms = [ [0 for i in range(3)] for j in range(n) ] ms[0][0] = 0 ms[0][1] = 0 ms[0][2] = a[0] ms[1][0] = 0 ms[1][1] = max(a[0], a[1]) for i in range(2, n): if i % 2 == 1: ms[i][0] = max(ms[i - 1][1], ms[i - 2][0] + a[i]) ms[i...
#!/usr/bin/python3 n = int(input()) a = tuple(map(int, input().split())) ms = [ [0 for i in range(3)] for j in range(n) ] ms[0][0] = 0 ms[0][1] = 0 ms[0][2] = a[0] ms[1][0] = 0 ms[1][1] = max(a[0], a[1]) for i in range(2, n): if i % 2 == 1: ms[i][0] = max(ms[i - 1][1], ms[i - 2][0] + a[i]) ms[i...
[["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 1, 0, 662, 12, 657, 12, 206, 51, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 206, 0, 70], ["+", 0, 1, 0, 662, 12, 657, 12, 206, 206, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 206, 0, 73]]
5
276
from heapq import heappush, heappop, heapify from collections import deque, defaultdict, Counter import itertools from itertools import permutations, combinations, accumulate import sys import bisect import string import math import time def I(): return int(input()) def S(): return input() def MI(): return map(in...
from heapq import heappush, heappop, heapify from collections import deque, defaultdict, Counter import itertools from itertools import permutations, combinations, accumulate import sys import bisect import string import math import time def I(): return int(input()) def S(): return input() def MI(): return map(in...
[["-", 3, 4, 0, 652, 3, 4, 0, 206, 206, 612], ["+", 3, 4, 0, 652, 3, 4, 0, 206, 206, 612]]
5
642
from heapq import heappush, heappop, heapify from collections import deque, defaultdict, Counter import itertools from itertools import permutations, combinations, accumulate import sys import bisect import string import math import time def I(): return int(input()) def S(): return input() def MI(): return map(in...
from heapq import heappush, heappop, heapify from collections import deque, defaultdict, Counter import itertools from itertools import permutations, combinations, accumulate import sys import bisect import string import math import time def I(): return int(input()) def S(): return input() def MI(): return map(in...
[["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 22]]
5
446
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> /*0 1 2 3 4 5 6 7*/ using namespace std; int slove() { int n; long long res = 0; cin >> n; vector<int> arr(n + 1, 0); vector<int> dp(n + 1, 0)...
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> /*0 1 2 3 4 5 6 7*/ using namespace std; int slove() { int n; long long res = 0; cin >> n; vector<long long> arr(n + 1, 0); vector<long long> ...
[["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
209
import itertools n=int(input()) a= list(map(int, input().split())) # aを偶数奇数の要素で振り分け a1=[] a2=[] for i in range(n): if i%2==0: a1.append(a[i]) else: a2.append(a[i]) # 累積和も作っておく a3=list(itertools.accumulate(a1)) a4=list(itertools.accumulate(a2)) x1=sum(a1) x2=sum(a2) if n%2==0: ans=-flo...
import itertools n=int(input()) a= list(map(int, input().split())) # aを偶数奇数の要素で振り分け a1=[] a2=[] for i in range(n): if i%2==0: a1.append(a[i]) else: a2.append(a[i]) # 累積和も作っておく a3=list(itertools.accumulate(a1)) a4=list(itertools.accumulate(a2)) x1=sum(a1) x2=sum(a2) if n%2==0: ans=-flo...
[["-", 12, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["+", 12, 652, 3, 4, 0, 657, 31, 657, 12, 22]]
5
355
# coding: UTF-8 import os def remove_empty(target_list: list): empty_removed_list = [x for x in target_list if x] return empty_removed_list def get_stdin_str_list(): input_str = input().strip() input_str_list = input_str.split() return input_str_list def get_stdin_int_list(): input_str_list =...
# coding: UTF-8 import os def remove_empty(target_list: list): empty_removed_list = [x for x in target_list if x] return empty_removed_list def get_stdin_str_list(): input_str = input().strip() input_str_list = input_str.split() return input_str_list def get_stdin_int_list(): input_str_list =...
[["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 70], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 73]]
5
110
#include <stdio.h> #include <string.h> int main(void) { char input[6]; int i; scanf("%s", input); if (input[2] == input[3]) { if (input[4] == input[5]) { printf("yes"); } else { printf("no"); } } else { printf("no"); } return 0; }
#include <stdio.h> #include <string.h> int main(void) { char input[6]; int i; scanf("%s", input); if (input[2] == input[3]) { if (input[4] == input[5]) { printf("Yes"); } else { printf("No"); } } else { printf("No"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
87
#include <iostream> using namespace std; main() { string s; cin >> s; int i; if (s.size() == 6) { if (s[2] == s[3] && s[4] == s[5]) cout << "yes\n"; else cout << "no\n"; } else cout << "no\n"; }
#include <iostream> using namespace std; main() { string s; cin >> s; int i; if (s.size() == 6) { if (s[2] == s[3] && s[4] == s[5]) cout << "Yes\n"; else cout << "No\n"; } else cout << "No\n"; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
78
// Vaidik Patel(India) // DA-IICT #include <bits/stdc++.h> using namespace std; //******************************************** #include <ext/pb_ds/assoc_container.hpp> // include the associative containers or group of templates such as set, multimap, map etc. #include <ext/pb_ds/tree_policy.hpp> // include the tree_ord...
// Vaidik Patel(India) // DA-IICT #include <bits/stdc++.h> using namespace std; //******************************************** #include <ext/pb_ds/assoc_container.hpp> // include the associative containers or group of templates such as set, multimap, map etc. #include <ext/pb_ds/tree_policy.hpp> // include the tree_ord...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
1,888
import java.util.*; public class Main { // test #1 0322 public static void main(String args[]) { Scanner sc = new Scanner(System.in); String input = sc.next(); char array[] = input.toCharArray(); boolean like = false; if ((array[2] == array[3]) && (array[4] == array[5])) like = true...
import java.util.*; public class Main { // test #A // public static void main(String args[]) { // System.out.println("staring #1"); // Scanner sc = new Scanner(System.in); // // int a = sc.nextInt(); // // int b = sc.nextInt(); // int c = sc.nextInt(); // String s = sc.next(); // // Sys...
[["-", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["-", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491]]
3
146
a = input() if (a[3] == a[4]) and (a[5] == a[6]): print("Yes") else: print("No")
a = input() if (a[2] == a[3]) and (a[4] == a[5]): print("Yes") else: print("No")
[["-", 15, 679, 31, 23, 0, 666, 0, 206, 206, 612], ["+", 15, 679, 31, 23, 0, 666, 0, 206, 206, 612], ["-", 15, 679, 12, 23, 0, 666, 0, 206, 206, 612], ["+", 15, 679, 12, 23, 0, 666, 0, 206, 206, 612]]
5
44
a,b,c,d,e,f=input().split() if c==d and e==f: print("Yes") else: print("No")
a,b,c,d,e,f=input() if c==d and e==f: print("Yes") else: print("No")
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
42
#include <stdio.h> int main(void) { char coffee[7] /* = {"cofdee"}*/; scanf("%s", coffee); if (coffee[2] == coffee[3] && coffee[4] == coffee[5]) { printf("yes\n"); } else { printf("no\n"); } return 0; }
#include <stdio.h> int main(void) { char coffee[7]; scanf("%s", coffee); if (coffee[2] == coffee[3] && coffee[4] == coffee[5]) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
71
s = input() condition = s[2]==s[3] and s[3]==s[4] if condition: print("Yes") else: print("No")
s = input() condition = s[2]==s[3] and s[4]==s[5] if condition: print("Yes") else: print("No")
[["-", 0, 662, 12, 679, 12, 666, 0, 206, 206, 612], ["+", 0, 662, 12, 679, 12, 666, 0, 206, 206, 612]]
5
43
S=input() ans='No' if S[2]==S[3] or S[4]==S[5]: ans='Yes' print(ans)
S=input() ans='No' if S[2]==S[3] and S[4]==S[5]: ans='Yes' print(ans)
[["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
40
#include <bits/stdc++.h> #define MAX 1000000 #define For(i, a, b) for (int i = (a); i < (b); i++) #define ll long long using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[2] == s[3] and s[4] == s[6]) { cout << "Yes\n"; } else cout << "No\n"; return 0...
#include <bits/stdc++.h> #define MAX 1000000 #define For(i, a, b) for (int i = (a); i < (b); i++) #define ll long long using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; // cout<<s.substr(2,2)<<endl; // cout<<s.substr(4,2)<<endl; if (s[2] == s[3] and s[4] == s[5])...
[["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
91
#include <cstdio> #include <iostream> using namespace std; char ch[7]; int main() { for (int i = 1; i <= 6; i++) cin >> ch[i]; if (ch[5] == ch[6] && ch[3] == ch[4]) printf("YES"); else printf("NO"); return 0; }
#include <cstdio> #include <iostream> using namespace std; char ch[7]; int main() { for (int i = 1; i <= 6; i++) cin >> ch[i]; if (ch[5] == ch[6] && ch[3] == ch[4]) printf("Yes"); else printf("No"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
81
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.length() != 6) cout << "NO"; else if (s[2] == s[3] && s[4] == s[5]) cout << "YES"; else cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.length() != 6) cout << "No"; else if (s[2] == s[3] && s[4] == s[5]) cout << "Yes"; else cout << "No"; return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
74
s = str(input()) if s[2] == s[3]: if s[4] == s[5]: print("Yes") else: print("No")
s = str(input()) if s[2] == s[3]: if s[4] == s[5]: print("Yes") quit() print("No")
[["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
44
//~ while (clock()<=69*CLOCKS_PER_SEC) //~ #pragma comment(linker, "/stack:200000000") #pragma GCC optimize("O3") //~ #pragma GCC optimize("Ofast") //~ #pragma GCC //target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") ~ #pragma //GCC optimize("unroll-loops") #include <bits/stdc++.h> #include <ext/pb_ds/as...
//~ while (clock()<=69*CLOCKS_PER_SEC) //~ #pragma comment(linker, "/stack:200000000") #pragma GCC optimize("O3") //~ #pragma GCC optimize("Ofast") //~ #pragma GCC //target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") ~ #pragma //GCC optimize("unroll-loops") #include <bits/stdc++.h> #include <ext/pb_ds/as...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
436
/* ██████╗ ███████╗ ██╔══██╗ ██╔════╝ ██████╔╝ ███████╗ ██╔══██╗ ╚════██║ ██║ ██║ ███████║ ╚═╝ ╚═╝ ╚══════╝ */ #include <bits/stdc++.h> using namespace std; #define ll long long int #define rep(i, n) for (int i = 0; i < n; i++) #define rev(i, n) for (int i = n - 1; i >= 0; i--) #define haha(j, a, n) for (int j = ...
/* ██████╗ ███████╗ ██╔══██╗ ██╔════╝ ██████╔╝ ███████╗ ██╔══██╗ ╚════██║ ██║ ██║ ███████║ ╚═╝ ╚═╝ ╚══════╝ */ #include <bits/stdc++.h> using namespace std; #define ll long long int #define rep(i, n) for (int i = 0; i < n; i++) #define rev(i, n) for (int i = n - 1; i >= 0; i--) #define haha(j, a, n) for (int j = ...
[["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 35]]
1
249
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <queue> #include <random> #include <set> #include <string> #include <time.h> #include <tuple> #include <unordered_map> #include <unordered_set> #include <utility> #...
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <queue> #include <random> #include <set> #include <string> #include <time.h> #include <tuple> #include <unordered_map> #include <unordered_set> #include <utility> #...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
184
s = input() if len(s) < 6: print('-1') elif s[2] == s[3] and s[4] == s[5]: print("YES") else: print("NO")
s = input() if len(s) < 6: print('-1') elif s[2] == s[3] and s[4] == s[5]: print("Yes") else: print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
54
/* FFFFFFFFFFFFFFFFFFFFFF F::::::::::::::::::::F F::::::::::::::::::::F FF::::::FFFFFFFFF::::F F:::::F FFFFFF F:::::F F::::::FFFFFFFFFF F:::::::::::::::F F:::::::::::::::F F::::::FFFFFFFFFF F:::::F F:::...
/* FFFFFFFFFFFFFFFFFFFFFF F::::::::::::::::::::F F::::::::::::::::::::F FF::::::FFFFFFFFF::::F F:::::F FFFFFF F:::::F F::::::FFFFFFFFFF F:::::::::::::::F F:::::::::::::::F F::::::FFFFFFFFFF F:::::F F:::...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
292
s=[] s=list(srt(input().split())) if s[2]==s[3] and s[4]==s[5]: print('Yes') else: print('No')
s=[] s=list((input())) if s[2]==s[3] and s[4]==s[5]: print('Yes') else: print('No')
[["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["-", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22]]
5
54
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <deque> #include <iostream> #include <map> #include <queue> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define repr(i, n) for (int i = (n); i >= 0; i--) #define repf(i, ...
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <deque> #include <iostream> #include <map> #include <queue> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define repr(i, n) for (int i = (n); i >= 0; i--) #define repf(i, ...
[["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
216
#include <bits/stdc++.h> #define fastio \ ios_base ::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define endl '\n' #define all(a) (a)....
#include <bits/stdc++.h> #define fastio \ ios_base ::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define endl '\n' #define all(a) (a)....
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
115
#include <bits/stdc++.h> using namespace std; string check(string s) { if (s[2] == s[3] && s[5] == s[6]) return "Yes"; return "No"; } int main() { string s; cin >> s; cout << check(s); }
#include <bits/stdc++.h> using namespace std; string check(string s) { if (s[2] == s[3] && s[4] == s[5]) return "Yes"; return "No"; } int main() { string s; cin >> s; cout << check(s); }
[["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
66
n = list(input()) if (n[5]): if (n[2]==n[3])and(n[4]==n[5]): print("YES") else: print("NO")
n = list(input()) if (n[5]): if (n[2]==n[3])and(n[4]==n[5]): print("Yes") else: print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
55
#include <bits/stdc++.h> using namespace std; #define int long long int #define double long double #define pb push_back #define endl '\n' #define all(x) (x).begin(), (x).end() #define F first #define S second #define sz(a) (int)((a).size()) #define fuck() cout << "--------" << endl #define see(x) cout << #x << " = " <<...
#include <bits/stdc++.h> using namespace std; #define int long long int #define double long double #define pb push_back #define endl '\n' #define all(x) (x).begin(), (x).end() #define F first #define S second #define sz(a) (int)((a).size()) #define fuck() cout << "--------" << endl #define see(x) cout << #x << " = " <<...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
157
def main(): s = input() if s[2]==s[3]: if s[4]==s[5]: print('Yes') else: print('No') main()
def main(): s = input() if s[2]==s[3] and s[4]==s[5]: print('Yes') else: print('No') main()
[["-", 0, 656, 0, 14, 8, 196, 0, 57, 0, 102], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 14, 8, 196, 0, 57, 15, 679, 17, 355]]
5
49
if num[2] == num[3] and num[-1] == num[-2]: print('Yes') else: print('No')
num = input() if num[2] == num[3] and num[-1] == num[-2]: print('Yes') else: print('No')
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
37
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes\n"; cout << "No\n"; return 0; }
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes\n"; else cout << "No\n"; return 0; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
58
#include <bits/stdc++.h> #define ll long long int #define ld long double #define ios \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ co...
#include <bits/stdc++.h> #define ll long long int #define ld long double #define ios \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ co...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
138
import java.util.Scanner; public final class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { final String s = scanner.next(); if (s.charAt(2) == s.charAt(3) || s.charAt(4) == s.charAt(5)) { System.out.println("Yes"); } else { Sys...
import java.util.Scanner; public final class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { final String s = scanner.next(); if (s.charAt(2) == s.charAt(3) && s.charAt(4) == s.charAt(5)) { System.out.println("Yes"); } else { Sys...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
107
#include <bits/stdc++.h> #define ll long long int #define F(i, j, k, in) for (int i = j; i < k; i += in) #define DF(i, j, k, in) for (int i = j; i >= k; i -= in) #define foreach(it, l) for (auto it = l.begin(); it != l.end(); it++) #define PB push_back #define ub upper_bound #define lb lower_bound #define ins insert #d...
#include <bits/stdc++.h> #define ll long long int #define F(i, j, k, in) for (int i = j; i < k; i += in) #define DF(i, j, k, in) for (int i = j; i >= k; i -= in) #define foreach(it, l) for (auto it = l.begin(); it != l.end(); it++) #define PB push_back #define ub upper_bound #define lb lower_bound #define ins insert #d...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
132
#include <iostream> using namespace std; int main() { string str; cin >> str; cout << ((str[2] == str[3]) && (str[4] == str[5])) ? "Yes" : "No"; }
#include <iostream> using namespace std; int main() { string str; cin >> str; cout << (((str[2] == str[3]) && (str[4] == str[5])) ? "Yes" : "No"); }
[["+", 0, 41, 15, 23, 0, 16, 31, 23, 0, 24], ["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 25]]
1
55
// by Top1 #include <bits/stdc++.h> #define f first #define s second #define int long long #define ld long double #define ull unsigned long long #define pii pair<int, int> #define pll pair<long, long> #define mp make_pair #define pb push_back #define pf push_front #define pp pop_back #define cerr cout #define rev reve...
// by Top1 #include <bits/stdc++.h> #define f first #define s second #define int long long #define ld long double #define ull unsigned long long #define pii pair<int, int> #define pll pair<long, long> #define mp make_pair #define pb push_back #define pf push_front #define pp pop_back #define cerr cout #define rev reve...
[["-", 51, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["-", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
189
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if ((S.at(2) == S.at(3)) && (S.at(4) == S.at(5))) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if ((S.at(2) == S.at(3)) && (S.at(4) == S.at(5))) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
74
string = input() if len(string) < 6: print("No") if string[2] == string[3] and string[4] == string[4]: print("Yes") else: print("No")
string = input() if len(string) < 6: print("No") if string[2] == string[3] and string[4] == string[5]: print("Yes") else: print("No")
[["-", 0, 57, 15, 679, 12, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 206, 612]]
5
54
#include <bits/stdc++.h> using namespace std; int main() { string S; if (S[2] == S[3] && S[4] == S[5]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S[2] == S[3] && S[4] == S[5]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
57
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); scan.close(); if (S.charAt(2) == S.charAt(3) && S.charAt(4) == S.charAt(4)) { System.out.println("Yes"); } else { System.out.println("...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); scan.close(); if (S.charAt(2) == S.charAt(3) && S.charAt(4) == S.charAt(5)) { System.out.println("Yes"); } else { System.out.println("...
[["-", 0, 16, 12, 16, 12, 492, 3, 4, 0, 499], ["+", 0, 16, 12, 16, 12, 492, 3, 4, 0, 499]]
3
107
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long const ll mod = 1e9 + 7; const ll maxn = 1e5 + 5; const double pi = 3.1415926535897932384626433832795028841971693993751058209749445923078; // iostream::sync_with_stdio(false); int main() { string s; cin >> s; if (s[2] == s...
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long const ll mod = 1e9 + 7; const ll maxn = 1e5 + 5; const double pi = 3.1415926535897932384626433832795028841971693993751058209749445923078; // iostream::sync_with_stdio(false); int main() { string s; cin >> s; if (s[2] == s...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
108
#include <bits/stdc++.h> using namespace std; #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define rep(i...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define rep(i...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
155
s = input() if(s[2]==s[3] or s[4]==s[5]): print("Yes\n") else: print("No\n")
s = input() if(s[2]==s[3] and s[4]==s[5]): print("Yes\n") else: print("No\n")
[["-", 0, 656, 0, 57, 15, 23, 0, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 23, 0, 679, 17, 355]]
5
44
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define endl "\n" #define deb(x) cerr << #x << ":" << x << "\n" int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "YES"; else cout << "NO"; r...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define endl "\n" #define deb(x) cerr << #x << ":" << x << "\n" int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes"; else cout << "No"; re...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
90
package main import ( "fmt" ) func main() { var s string fmt.Scan(s) if s[2] == s[3] && s[4] == s[5] { fmt.Print("Yes") } else { fmt.Print("No") } }
package main import ( "fmt" ) func main() { var s string fmt.Scan(&s) if s[2] == s[3] && s[4] == s[5] { fmt.Print("Yes") } else { fmt.Print("No") } }
[["+", 0, 1, 0, 2, 3, 4, 0, 91, 17, 67]]
7
73
#include <bits/stdc++.h> using namespace std; int main() { char s[6]; scanf("%s", s); (s[2] == s[3] && s[4] == s[5]) ? printf("YES\n") : printf("NO\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char s[6]; scanf("%s", s); (s[2] == s[3] && s[4] == s[5]) ? printf("Yes\n") : printf("No\n"); return 0; }
[["-", 0, 41, 64, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 41, 64, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 41, 75, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 41, 75, 2, 3, 4, 0, 5, 0, 6]]
1
68
#include <iostream> using namespace std; int main(void) { string S; cin >> S; if (S[2] == S[3] && S[4] && S[5]) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <iostream> using namespace std; int main(void) { string S; cin >> S; if (S[2] == S[3] && S[4] == S[5]) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
63
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "yes"; else { cout << "no"; } return 0; }
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes"; else { cout << "No"; } return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
61
S = input() if S[2] == S[3] and S[4] == S[5]: print(Yes) else: print(No)
S=input() if S[2]==S[3] and S[4]==S[5]: print('Yes') else: print('No')
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
36
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[2] == s[3]) { if (s[4] == s[5]) cout << "Yes" << endl; } else cout << "No" << endl; return 0; }
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 8, 9, 0, 57, 64, 9, 0, 57, 0, 121], ["-", 0, 57, 64, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]]
1
65
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); // a string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) { cout << "Yes\n"; } else { cout << "NO\n"; } return 0; }
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) { cout << "Yes\n"; } else { cout << "No\n"; } return 0; }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
80
s = input() if s[2] == s[3] & s[4] == s[5]: print('Yes') else: print('No')
s = input() if s[2] == s[3] and s[4] == s[5]: print('Yes') else: print('No')
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 67], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
40
#include <iostream> #include <string> // for using std::string data type using namespace std; int main() { string s; getline(cin, s); if (s[2] == s[3] && s[5] == s[6]) cout << "Yes"; else cout << "No"; return 0; }
#include <iostream> #include <string> // for using std::string data type using namespace std; int main() { string s; getline(cin, s); if (s[2] == s[3] && s[4] == s[5]) cout << "Yes"; else cout << "No"; return 0; }
[["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
63
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; cout << (s[2] == s[3] && s[4] == s[5]) ? "Yes" : "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; cout << (((s[2] == s[3]) && (s[4] == s[5])) ? "Yes" : "No"); return 0; }
[["+", 0, 16, 12, 23, 0, 41, 15, 23, 0, 24], ["+", 0, 41, 15, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 41, 15, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 41, 15, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 41, 15, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 25]]
1
54
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i < n + 1; i++) #define sort(A) sort(A.begin(), A.end()) #define reverse(A) reverse(A.begin(), A.end()); typedef long long ll; int main() { string s; cin >> s; if (s[2] = s[3] && s[4] =...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i < n + 1; i++) #define sort(A) sort(A.begin(), A.end()) #define reverse(A) reverse(A.begin(), A.end()); typedef long long ll; int main() { string s; cin >> s; if (s[2] == s[3] && s[4] ...
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60]]
1
91
#include <stdio.h> #include <string.h> #define N 7 int main() { char s[N], l; scanf("%s", &s); l = strlen(s); if (l == 6) { for (int i = 0; i < l; i++) { if (s[i] >= 'a' && s[i] <= 'z') { if (s[l - 1] == s[l - 2] && s[l - 3] == s[l - 4]) { printf("yes"); break; } e...
#include <stdio.h> #include <string.h> #define N 6 int main() { char s[N], l; scanf("%s", &s); l = strlen(s); if (l == 6) { for (int i = 0; i < l; i++) { if (s[i] >= 'a' && s[i] <= 'z') { if (s[l - 1] == s[l - 2] && s[l - 3] == s[l - 4]) { printf("Yes"); break; } e...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
140
str = gets.to_s p (str[2].eql?(str[3]) && str[4].eql?(str[5])) ? "Yes" : "No"
str = gets.to_s puts (str[2].eql?(str[3]) && str[4].eql?(str[5])) ? "Yes" : "No"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
41
#include <bits/stdc++.h> #define maxn 200005 #define MOD 1000000007 #define INF 10000000000 using namespace std; #define ll long long #define pii pair<ll, ll> #define piii pair<ll, pii> #define ft first #define sd second void fast() { ios_base::sync_with_stdio(false); cin.tie(0); } void solve() { string s; ...
#include <bits/stdc++.h> #define maxn 200005 #define MOD 1000000007 #define INF 10000000000 using namespace std; #define ll long long #define pii pair<ll, ll> #define piii pair<ll, pii> #define ft first #define sd second void fast() { ios_base::sync_with_stdio(false); cin.tie(0); } void solve() { string s; ...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
130
#include <bits/stdc++.h> using namespace std; using lli = long long int; using ld = long double; using ulli = unsigned long long int; #define filein freopen("in.txt", "r", stdin) #define fileout freopen("out.txt", "w", stdout) #define dbg(x) cerr << #x << ": " << x << endl #define all(v) ((v).begin()), ((v).end()) #def...
#include <bits/stdc++.h> using namespace std; using lli = long long int; using ld = long double; using ulli = unsigned long long int; #define filein freopen("in.txt", "r", stdin) #define fileout freopen("out.txt", "w", stdout) #define dbg(x) cerr << #x << ": " << x << endl #define all(v) ((v).begin()), ((v).end()) #def...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
156
#include <bits/stdc++.h> using namespace std; int main() { char a[6]; for (int i = 0; i < 6; i++) { cin >> a[i]; } if (a[2] == a[3] && a[4] == a[5]) { cout << "YES"; } else { cout << "NO"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a[6]; for (int i = 0; i < 6; i++) { cin >> a[i]; } if (a[2] == a[3] && a[4] == a[5]) { cout << "Yes"; } else { cout << "No"; } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
83
s = input() txt = 'NO' if s[2] == s[3] and s[4] == s[5]: txt = 'Yes' print(txt)
s = input() txt = 'No' if s[2] == s[3] and s[4] == s[5]: txt = 'Yes' print(txt)
[["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]]
5
40
/* Hi there <3 ──────▄▀▄─────▄▀▄ ─────▄█░░▀▀▀▀▀░░█▄ ─▄▄──█░░░░░░░░░░░█──▄▄ █▄▄█─█░░▀░░┬░░▀░░█─█▄▄█ */ #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <iostream> #include <map> #include <numeric> #include...
/* Hi there <3 ──────▄▀▄─────▄▀▄ ─────▄█░░▀▀▀▀▀░░█▄ ─▄▄──█░░░░░░░░░░░█──▄▄ █▄▄█─█░░▀░░┬░░▀░░█─█▄▄█ */ #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <iostream> #include <map> #include <numeric> #include...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
296
// Bi-smi llāh #include <bits/stdc++.h> using namespace std; #define nn '\n' #define pb push_back #define F(i, n) for (int i = 0; i < n; ++i) #define Fe(i, n) for (auto i : n) #define ll long long int int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[2] == s[3] and s[4] == s[5]) { ...
// Bi-smi llāh #include <bits/stdc++.h> using namespace std; #define nn '\n' #define pb push_back #define F(i, n) for (int i = 0; i < n; ++i) #define Fe(i, n) for (auto i : n) #define ll long long int int main() { ios::sync_with_stdio(0); cin.tie(0); string s; cin >> s; if (s[2] == s[3] and s[4] == s[5]) { ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
101
#include <iostream> #include <string> using namespace std; int main() { string input; cin >> input; string a = input.substr(2, 1); string b = input.substr(3, 1); string c = input.substr(4, 1); string d = input.substr(5, 1); if (a == b) { cout << "Yes"; } else { cout << "No"; } }
#include <iostream> #include <string> using namespace std; int main() { string input; cin >> input; string a = input.substr(2, 1); string b = input.substr(3, 1); string c = input.substr(4, 1); string d = input.substr(5, 1); if (a == b && c == d) { cout << "Yes"; } else { cout << "No"; } }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
92
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); if ((s.charAt(2) == s.charAt(3)) && (s.charAt(4) == s.charAt(5))) { System.out.println("Yes"); } else { System.out.println("no"); } s...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (s.charAt(2) == s.charAt(3) && s.charAt(4) == s.charAt(5)) { System.out.println("Yes"); } else { System.out.println("No"); } sc.cl...
[["-", 0, 57, 15, 15, 0, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 15, 0, 16, 31, 23, 0, 25], ["-", 0, 57, 15, 15, 0, 16, 12, 23, 0, 24], ["-", 12, 23, 0, 16, 12, 492, 3, 4, 0, 25], ["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
111
l = input("Enter: ") print("Yes" if (l[2]==l[3] and l[4]==l[5]) else "No")
l = input() print("Yes" if (l[2]==l[3] and l[4]==l[5]) else "No")
[["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655]]
5
40
S = input() if S is S.lower(): if len(S) == 6: if S[2] == S[3]: if S[4] == S[5]: print("Yes") else: print("No") else: print("No")
S = input() S = S.lower() if len(S) == 6: if S[2] == S[3]: if S[4] == S[5]: print("Yes") else: print("No") else: print("No")
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 709], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 102]]
5
66
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if ((s[4] == s[5]) && (s[2] == s[3])) { cout << "YES"; } else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if ((s[4] == s[5]) && (s[2] == s[3])) { cout << "Yes"; } else cout << "No"; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
60
S = gets.split puts (S[2] == S[3] && S[4] == S[5]) ? 'Yes' : 'No'
S = gets.strip puts (S[2] == S[3] && S[4] == S[5]) ? 'Yes' : 'No'
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
35
S = input() if len(S) > 6: if S[2] is S[3] and S[4] is S[5]: print ("Yes") exit() print ("No")
S = input() if len(S) >= 6: if S[2] is S[3] and S[4] is S[5]: print ("Yes") exit() print ("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
49
#include <bits/stdc++.h> using namespace std; int main() { char s[6]; cin >> s; if (s[2] == s[3] && (s[4] == s[5])) cout << "YES"; else { cout << "NO"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char s[6]; cin >> s; if (s[2] == s[3] && (s[4] == s[5])) cout << "Yes"; else { cout << "No"; } return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
64
// _____ _ _ _ _ _ _ _ // \_ \ |_ (_)___ __ _| |__ __ _| |_ (_) |_ (_)___ // / /\/ __| | / __| \ \ /\ / / '_ \ / _` | __| | | __| | / __| // /\/ /_ | |_ | \__ \ \ V V /| | | | (_| | |_ | | |_ | \__ \ // \____/ \__| |_|___/ \_/\_/ |_| |_|\__,_|\__| |_...
// _____ _ _ _ _ _ _ _ // \_ \ |_ (_)___ __ _| |__ __ _| |_ (_) |_ (_)___ // / /\/ __| | / __| \ \ /\ / / '_ \ / _` | __| | | __| | / __| // /\/ /_ | |_ | \__ \ \ V V /| | | | (_| | |_ | | |_ | \__ \ // \____/ \__| |_|___/ \_/\_/ |_| |_|\__,_|\__| |_...
[["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13]]
1
111
import java.util.Scanner; public class Main { public static void main(String[] args) { final Scanner input = new Scanner(System.in); char[] text = input.nextLine().trim().toCharArray(); if (text.length >= 6) { if (text[3 - 1] == text[4 - 1] && text[5 - 1] == text[6 - 1]) { System.out.prin...
import java.util.Scanner; public class Main { public static void main(String[] args) { final Scanner input = new Scanner(System.in); char[] text = input.nextLine().trim().toCharArray(); if (text.length >= 6) { if (text[3 - 1] == text[4 - 1] && text[5 - 1] == text[6 - 1]) { System.out.prin...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
136
#include "bits/stdc++.h" using namespace std; const int N = 100100; const long long inf = 1e9; #define ll long long #define fr(i, a, n) for (int i = a; i < n; i++) #define mp make_pair #define fi first #define se second #define pb push_back #define pii pair<int, int> #define pll pair<ll, ll> #define vipb(v) ...
#include "bits/stdc++.h" using namespace std; const int N = 100100; const long long inf = 1e9; #define ll long long #define fr(i, a, n) for (int i = a; i < n; i++) #define mp make_pair #define fi first #define se second #define pb push_back #define pii pair<int, int> #define pll pair<ll, ll> #define vipb(v) ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
217
#include <stdio.h> int main() { char a[100]; for (int i = 0; i < 6; i++) { scanf("%s", a[i]); } if (a[2] == a[3] && a[4] == a[5]) { printf("Yes"); } else { printf("No"); } return 0; }
#include <stdio.h> int main() { char a[100]; for (int i = 0; i < 6; i++) { scanf("%s", &a[i]); } if (a[2] == a[3] && a[4] == a[5]) { printf("Yes"); } else { printf("No"); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
86