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; using ll = long long; using pint = pair<int, int>; using vint = vector<int>; using vvint = vector<vint>; using vpint = vector<pint>; #define repi(i, start, end) \ for (int(i) = (start), TemPNuM = (int)(end); (i) < TemPN...
#include <bits/stdc++.h> using namespace std; using ll = long long; using pint = pair<int, int>; using vint = vector<int>; using vvint = vector<vint>; using vpint = vector<pint>; #define repi(i, start, end) \ for (int(i) = (start), TemPNuM = (int)(end); (i) < TemPN...
[["+", 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
276
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pi 3.14159265358979323846 #define mod 1000000007 #define pf push_front #define pb push_back #define flush fflush(stdout); #define null NULL #define test cout << "#"; int main() { ios_base::sync_with_stdio(false); cin.tie(null); string s;...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pi 3.14159265358979323846 #define mod 1000000007 #define pf push_front #define pb push_back #define flush fflush(stdout); #define null NULL #define test cout << "#"; int main() { ios_base::sync_with_stdio(false); cin.tie(null); string s;...
[["-", 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
98
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; if (a.size() != 6) { cout << "No"; return 0; } for (int i = 0; i < a.size(); i++) { if (a[i] < 'a' || a[i] > 'z') { cout << "No"; return 0; } } if (a[2] == a[3] && a[4] == a[5]) ; { cout...
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; if (a.size() != 6) { cout << "No"; return 0; } for (int i = 0; i < a.size(); i++) { if (a[i] < 'a' || a[i] > 'z') { cout << "No"; return 0; } } if (a[2] == a[3] && a[4] == a[5]) { cout << "Yes...
[["-", 0, 14, 8, 9, 0, 57, 64, 1, 0, 35]]
1
134
x = input() if x[2] == x[3]: if x[4] == x[5]: print("Yes") else: print("No")
x = input() if x[2] == x[3] and x[4]==x[5]: print("Yes") else: print("No")
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 102], ["-", 0, 656, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
41
#include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> using namespace std; // using namespace __gnu_pbds; #define lli long long int #define llu unsigned long long int #define fr(va, beg, end) for (lli va = beg; va < end; va++) #define pb push_back #define rt return...
#include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> using namespace std; // using namespace __gnu_pbds; #define lli long long int #define llu unsigned long long int #define fr(va, beg, end) for (lli va = beg; va < end; va++) #define pb push_back #define rt return...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
160
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < (n); i++) #define FOR(i, a, b) for (ll i = (a); i < (b); i++) #define dfor(i, a, b) for (ll i = (a); i >= (b); i--) #define mem(u, vis) memset(u, vis, sizeof(u)) #define ll long long #define ull unsigned long long #define MOD 1000000007 ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < (n); i++) #define FOR(i, a, b) for (ll i = (a); i < (b); i++) #define dfor(i, a, b) for (ll i = (a); i >= (b); i--) #define mem(u, vis) memset(u, vis, sizeof(u)) #define ll long long #define ull unsigned long long #define MOD 1000000007 ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
113
n =input() if (n[2] == n[3] and n[4] == n[5]): print("YES") else: print("NO")
n = input() 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
42
//#include <ext/pb_ds/assoc_container.hpp> #include <bits/stdc++.h> using namespace std; // using namespace __gnu_pbds; // template <class c, class cmp = less<c> > using ordered_set = tree<c, // null_type, cmp, rb_tree_tag, tree_order_statistics_node_update>; #define IOS ...
//#include <ext/pb_ds/assoc_container.hpp> #include <bits/stdc++.h> using namespace std; // using namespace __gnu_pbds; // template <class c, class cmp = less<c> > using ordered_set = tree<c, // null_type, cmp, rb_tree_tag, tree_order_statistics_node_update>; #define IOS ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
474
s = gets.chomp.split('') y = 'No' y = 'yes' if s[2] == s[3] && s[4] == s[5] puts y
s = gets.chomp.split('') y = 'No' y = 'Yes' if s[2] == s[3] && s[4] == s[5] puts y
[["-", 0, 493, 0, 751, 8, 662, 12, 557, 0, 6], ["+", 0, 493, 0, 751, 8, 662, 12, 557, 0, 6]]
4
43
#include <bits/stdc++.h> 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[4]) { cout << "Yes"; } else { cout << "No"; } }
#include <bits/stdc++.h> 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"; } else { cout << "No"; } }
[["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
72
#include <iostream> #include <string> 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; } }
#include <iostream> #include <string> 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; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
67
import java.util.Scanner; public class Main { public static void main(String[] args) { String coffee; Scanner scan = new Scanner(System.in); coffee = scan.nextLine(); if (coffee.length() == 6 && method(coffee)) { if (coffee.charAt(2) == coffee.charAt(3) || coffee.charAt(4) == coffee...
import java.util.Scanner; public class Main { public static void main(String[] args) { String coffee; Scanner scan = new Scanner(System.in); coffee = scan.nextLine(); if (coffee.length() == 6 && method(coffee)) { if (coffee.charAt(2) == coffee.charAt(3) && coffee.charAt(4) == coffee...
[["-", 64, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 64, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
268
#include <stdio.h> int main(void) { char a[10]; scanf("%s", a); if (a[2] == a[3] && a[4] == a[5]) { printf("yes"); } else { printf("no"); } return 0; }
#include <stdio.h> int main(void) { char a[10]; scanf("%s", a); if (a[2] == a[3] && a[4] == a[5]) { printf("Yes"); } 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
68
#include <stdio.h> int main() { char bun[6]; int i; for (i = 0; i < 6; i++) { scanf("%c", &bun[i]); } if (bun[2] == bun[3] && bun[4] == bun[5]) { printf("yes"); } else printf("No"); return 0; }
#include <stdio.h> int main() { char bun[6]; int i; for (i = 0; i < 6; i++) { scanf("%c", &bun[i]); } if (bun[2] == bun[3] && bun[4] == bun[5]) { printf("Yes"); } 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]]
1
87
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long #define ii pair<int, int> #define vi vector<int> #define vii vector<ii> #define vll vector<ll> #define vvi vector<vector<int>> #define vvii vector<vector<ii>> #define vvll vector<vector<ll>> #defi...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long #define ii pair<int, int> #define vi vector<int> #define vii vector<ii> #define vll vector<ll> #define vvi vector<vector<int>> #define vvii vector<vector<ii>> #define vvll vector<vector<ll>> #defi...
[["-", 3, 4, 0, 23, 0, 41, 64, 5, 0, 6], ["+", 3, 4, 0, 23, 0, 41, 64, 5, 0, 6], ["-", 3, 4, 0, 23, 0, 41, 75, 5, 0, 6], ["+", 3, 4, 0, 23, 0, 41, 75, 5, 0, 6]]
1
265
def main(): S = list(input()) if S[2] == S[3] and S[4] and S[5]: print('Yes') else: print('No') if __name__ == '__main__': main()
def main(): S = list(input()) if S[2] == S[3] and S[4] == S[5]: print('Yes') else: print('No') if __name__ == '__main__': main()
[["-", 0, 14, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 60]]
5
58
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define test \ int t; \ cin >> t; \ while (t--...
// 200 jyada le le bas saare test case pass kara de #include <bits/stdc++.h> using namespace std; #define endl "\n" #define test \ int t; \ cin >> t; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
246
s = list(input()) if s[2] == s[3] and s[4] and s[5] and s[0] != s[1]: print("Yes") else: print("No")
s = list(input()) if s[2] == s[3] and s[4] == s[5] and s[0] != s[1] : print("Yes") else: print("No")
[["-", 0, 656, 0, 57, 15, 679, 31, 679, 17, 355], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 60]]
5
53
#include <bits/stdc++.h> using namespace std; string S; int main() { cin >> S; if (S[2] == S[3] && S[4] == S[5]) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; string S; int main() { cin >> S; if ((S[2] == S[3]) && (S[4] == S[5])) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 25], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
62
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG 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> #define _GLIBCXX_DEBUG 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
76
#include <iostream> using namespace std; int main() { char s[6]; cin >> s; int k = 0; for (int i = 0; i < 6; i++) { if (isupper(s[i])) k = 1; } if (k != 1 && s[2] == s[3] && s[4] == s[5]) cout << "YES"; else cout << "NO"; }
#include <iostream> using namespace std; int main() { char s[6]; cin >> s; int k = 0; for (int i = 0; i < 6; i++) { if (isupper(s[i])) k = 1; } if (k != 1 && s[2] == s[3] && s[4] == s[5]) cout << "Yes"; else cout << "No"; }
[["-", 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
96
N = input() N = list(N) if N[2] == N[3]: if N[4] == N[5]: print("Yes") else: print("No")
N = input() N = list(N) if N[2] == N[3] and N[4] == N[5]: print("Yes") else: print("No")
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 102], ["-", 0, 656, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
47
s = input() print('YES') if s[2] == s[3] and s[4] == s[5] else print('NO')
s = input() print('Yes') if s[2] == s[3] and s[4] == s[5] else print('No')
[["-", 0, 41, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 41, 0, 652, 3, 4, 0, 557, 0, 6]]
5
38
S = input() for i in range(0, len(S)): if ((S[2]==S[3])&(S[4]==S[5])): print("yes") break else: print("No") break
S = input() for i in range(0, len(S)): if ((S[2]==S[3])&(S[4]==S[5])): print("Yes") break else: print("No") break
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
61
<?php $s = fgets(STDIN); if($s[2] & $s[3] & $s[4] & $s[5]){ echo "Yes"; }else{ echo "No"; } ?>
<?php $s = fgets(STDIN); if($s[2]===$s[3] & $s[4]===$s[5]) { echo "Yes"; }else{ echo "No"; } ?>
[["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 67], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 565], ["-", 0, 493, 0, 57, 15, 23, 0, 16, 17, 67], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 565]]
6
51
str=input(" ") #for i in range(len(str)): # print(str[i]) # TODO: write code... if((str[2]==str[3]) and (str[4]==str[5])): print("YES") else: print("NO")
str=input(" ") #for i in range(len(str)): # print(str[i]) # TODO: write code... if((str[2]==str[3]) and (str[4]==str[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
52
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef string str; int main() { ll t, n, m, k, i, a, b; str st; cin >> st; if (st[2] == st[3] && st[4] == st[5]) cout << "YES"; else cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef string str; int main() { ll t, n, m, k, i, a, b; str st; cin >> st; if (st[2] == st[3] && st[4] == st[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
82
#include <iostream> using namespace std; int main(void) { // Your code here! int flag = 0; char a[100]; cin >> a; if (a[2] == a[3]) { if (a[4] = a[5]) { cout << "Yes"; flag++; } } if (flag == 0) { cout << "No"; } }
#include <iostream> using namespace std; int main(void) { // Your code here! int flag = 0; char a[100]; cin >> a; if (a[2] == a[3]) { if (a[4] == a[5]) { cout << "Yes"; flag++; } } if (flag == 0) { cout << "No"; } }
[["-", 64, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
80
#include <algorithm> #include <cstdio> #include <iostream> #include <string.h> using namespace std; #define endl '\n' #define pi pair<int, int> int main() { ios::sync_with_stdio(false); cin.tie(NULL); string s; cin >> s; cout << (s[2] == s[3] && s[4] == s[5] ? "YES" : "NO") << endl; return 0; }
#include <algorithm> #include <cstdio> #include <iostream> #include <string.h> using namespace std; #define endl '\n' #define pi pair<int, int> int main() { ios::sync_with_stdio(false); cin.tie(NULL); string s; cin >> s; cout << (s[2] == s[3] && s[4] == s[5] ? "Yes" : "No") << endl; return 0; }
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
82
#include <bits/stdc++.h> 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; }
#include <bits/stdc++.h> 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; }
[["-", 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
65
#include <iostream> using namespace std; int main() { char A[6]; for (int i = 0; i < 6; i++) cin >> A[6]; if ((A[2] == A[3]) && (A[4] == A[5])) cout << "Yes" << endl; else cout << "No" << endl; }
#include <iostream> 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" << endl; else cout << "No" << endl; }
[["-", 8, 1, 0, 16, 12, 69, 341, 342, 0, 13], ["+", 8, 1, 0, 16, 12, 69, 341, 342, 0, 22]]
1
82
#include <bits/stdc++.h> using namespace std; #define all(x) begin(x), end(x) using ll = long long; using ld = long double; using pii = pair<int, int>; using vi = vector<int>; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); string s; cin >> s; bool valid = s[2] == s[3] and s[4]...
#include <bits/stdc++.h> using namespace std; #define all(x) begin(x), end(x) using ll = long long; using ld = long double; using pii = pair<int, int>; using vi = vector<int>; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); string s; cin >> s; bool valid = s[2] == s[3] and s[4]...
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
120
package main import ( "bufio" "fmt" "os" "strings" ) func main() { reader := bufio.NewReader(os.Stdin) tmp, _ := reader.ReadString('\n') tmp = strings.Trim(tmp, "\n") if tmp[1] != tmp[2] { fmt.Println("No") return } if tmp[3] != tmp[4] { fmt.Println("No") return } fmt.Println("Yes") return }
package main import ( "bufio" "fmt" "os" "strings" ) func main() { reader := bufio.NewReader(os.Stdin) tmp, _ := reader.ReadString('\n') tmp = strings.Trim(tmp, "\n") if tmp[2] != tmp[3] { fmt.Println("No") return } if tmp[4] != tmp[5] { fmt.Println("No") return } fmt.Println("Yes") return }
[["-", 8, 196, 0, 57, 15, 16, 31, 437, 71, 433], ["+", 8, 196, 0, 57, 15, 16, 31, 437, 71, 433], ["-", 8, 196, 0, 57, 15, 16, 12, 437, 71, 433], ["+", 8, 196, 0, 57, 15, 16, 12, 437, 71, 433]]
7
123
#include <bits/stdc++.h> #define int long long int #define pb push_back #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); using namespace std; const int N = 5e6 + 10; const int mod = 1e9 + 7;...
#include <bits/stdc++.h> #define int long long int #define pb push_back #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); using namespace std; const int N = 5e6 + 10; const int mod = 1e9 + 7;...
[["-", 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
362
#include <bits/stdc++.h> using namespace std; #define ll long long int ll arr[59]; ll prr[109]; map<ll, ll> mp; vector<ll> pr; int main() { ll i, j, k, l, p, q, r, s, t, n, m; string str; cin >> str; if (str[2] == str[3] && str[4] == str[5]) cout << "YES" << '\n'; else cout << "NO" << '\n'; }
#include <bits/stdc++.h> using namespace std; #define ll long long int ll arr[59]; ll prr[109]; map<ll, ll> mp; vector<ll> pr; int main() { ll i, j, k, l, p, q, r, s, t, n, m; string str; cin >> str; if (str[2] == str[3] && str[4] == str[5]) cout << "Yes" << '\n'; else cout << "No" << '\n'; }
[["-", 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
114
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if (S.charAt(2) == S.charAt(3) && S.charAt(4) == S.charAt(5)) System.out.println("YES"); else System.out.println("NO"); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if (S.charAt(2) == S.charAt(3) && S.charAt(4) == S.charAt(5)) System.out.println("Yes"); else System.out.println("No"); } }
[["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
97
#include <stdio.h> int main(void) { char s[6]; scanf("%s", &s); if (s[2] == s[3]) { if (s[4] == s[5]) { printf("Yes"); } } else { printf("No"); } return 0; }
#include <stdio.h> int main(void) { char s[6]; scanf("%s", &s); if (s[2] == s[3] && s[4] == s[5]) { printf("Yes"); } else { printf("No"); } return 0; }
[["-", 0, 14, 8, 9, 0, 57, 15, 23, 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, 23, 0, 24], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]]
0
73
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if ((S.substr(2, 1) == S.substr(3, 1)) || (S.substr(4, 1) == S.substr(5, 1))) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if ((S.substr(2, 1) == S.substr(3, 1)) && (S.substr(4, 1) == S.substr(5, 1))) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
85
#include <bits/stdc++.h> using namespace std; int main() { // freopen("input.txt", "r", stdin); string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) { cout << "YES" << "\n"; } else { cout << "NO" << "\n"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { // freopen("input.txt", "r", stdin); string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) { cout << "Yes" << "\n"; } else { cout << "No" << "\n"; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
70
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c = 0; for (int i = 0; i < 6; i++) { if (s[2] == s[3] && s[5] == s[5]) { c++; } } if (c > 0) { cout << "Yes" << endl; } else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int c = 0; for (int i = 0; i < 6; i++) { if (s[2] == s[3] && s[4] == s[5]) { c++; } } if (c > 0) { cout << "Yes" << endl; } else cout << "No" << endl; }
[["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13]]
1
92
#include <bits/stdc++.h> using namespace std; int main() { string s; int i; if (s[2] == s[3] && s[4] == s[5]) { cout << "Yes"; } else { cout << "No"; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; int i; cin >> s; if (s[2] == s[3] && s[4] == s[5]) { cout << "Yes"; } else { cout << "No"; } }
[["+", 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
S = input() list_S = list(S) if list_S[2] == list_S[3] or list_S[4] == list_S[5]: print("Yes") else: print("No")
S = input() list_S = list(S) if list_S[2] == list_S[3] and list_S[4] == list_S[5]: print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
46
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; // cout<<s[0]; if ((s[2] == s[3]) && (s[4] == s[5])) puts("YES"); else puts("NO"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; // cout<<s[0]; if ((s[2] == s[3]) && (s[4] == s[5])) puts("Yes"); else puts("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
64
#include <bits/stdc++.h> using namespace std; int main() { int i, l; char a[1000]; cin >> a; l = strlen(a); if (a[2] == a[3] && a[4] == a[5]) printf("YES\n"); else printf("NO\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int i, l; char a[1000]; cin >> a; l = strlen(a); if (a[2] == a[3] && a[4] == a[5]) printf("Yes\n"); else printf("No\n"); 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
76
#include <bits/stdc++.h> using namespace std; #define ll long long #define tc(t) \ int t; \ cin >> t; \ while (...
#include <bits/stdc++.h> using namespace std; #define ll long long #define tc(t) \ int t; \ cin >> t; \ while (...
[["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
139
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; #define INF 20000...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; #define INF 20000...
[["-", 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]]
1
227
#include <bits/stdc++.h> using namespace std; string coffe(string s) { if (s[2] == s[3] && s[4] == s[5]) return "YES"; else return "NO"; } int main() { string s, res; getline(cin, s); res = coffe(s); cout << res; return 0; }
#include <bits/stdc++.h> using namespace std; string coffe(string s) { if (s[2] == s[3] && s[4] == s[5]) return "Yes"; else return "No"; } int main() { string s, res; getline(cin, s); res = coffe(s); cout << res; return 0; }
[["-", 8, 9, 0, 57, 64, 37, 0, 5, 0, 6], ["+", 8, 9, 0, 57, 64, 37, 0, 5, 0, 6], ["-", 0, 57, 75, 76, 0, 37, 0, 5, 0, 6], ["+", 0, 57, 75, 76, 0, 37, 0, 5, 0, 6]]
1
79
#include <algorithm> #include <ctype.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> using namespace std; #define U unsigned #define S short #define L long #define LL long long #define LLU long long unsigned // Reading and Printing Arrays // short int #define rhd(ar...
#include <algorithm> #include <ctype.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> using namespace std; #define U unsigned #define S short #define L long #define LL long long #define LLU long long unsigned // Reading and Printing Arrays // short int #define rhd(ar...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
505
#include <iostream> #include <string.h> using namespace std; // Compiler version g++ 6.3.0 int main() { char a[6]; int k = 0; cin >> a; for (int b = 0; b < 6; b++) { if (a[b] >= 'a' && a[b] <= 'z') k++; else k = k + 0; } if (k == 6 && (a[2] == a[3]) && (a[4] == a[5])) c...
#include <iostream> #include <string.h> using namespace std; // Compiler version g++ 6.3.0 int main() { char a[6]; int k = 0; cin >> a; for (int b = 0; b < 6; b++) { if (a[b] >= 'a' && a[b] <= 'z') k++; else k = k + 0; } if (k == 6 && (a[2] == a[3]) && (a[4] == a[5])) c...
[["-", 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
123
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vi> vvi; typedef pair<int, int> ii; #define endl '\n' #define mod 998244353 #define pi 3.14159265358979323846 #define rep(i, a, b) for (int i = a; i < b; i++) #define sz(a) int((a).size()) #define pb push_back #de...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vi> vvi; typedef pair<int, int> ii; #define endl '\n' #define mod 998244353 #define pi 3.14159265358979323846 #define rep(i, a, b) for (int i = a; i < b; i++) #define sz(a) int((a).size()) #define pb push_back #de...
[["-", 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
163
#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; } }
#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; } }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
60
#include <iostream> using namespace std; string s; int main() { cin >> s; if (s[5] == s[4] and s[2] == s[3]) cout << "YES"; else cout << "NO"; }
#include <iostream> using namespace std; string s; int main() { cin >> s; if (s[5] == s[4] and s[2] == s[3]) cout << "Yes"; else cout << "No"; }
[["-", 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
54
#include <bits/stdc++.h> #define ll long long using namespace std; string s; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cin >> s; if (s[2] == s[3] || s[4] == s[5]) cout << "Yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; string s; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes"; else cout << "No"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
74
S = list(input()) cond1 = S[2] == S[3] cond2 = S[3] == S[4] if cond1 & cond2: print('Yes') else: print('No')
S = list(input()) cond1 = S[2] == S[3] cond2 = S[4] == S[5] if cond1 & cond2: print('Yes') else: print('No')
[["-", 0, 1, 0, 662, 12, 666, 0, 206, 206, 612], ["+", 0, 1, 0, 662, 12, 666, 0, 206, 206, 612]]
5
49
#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; }
#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, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
63
#include <cstdio> #include <iostream> using namespace std; int main() { char c[6]; scanf("%c%c%c%c%c%c", &c[0], &c[1], &c[2], &c[3], &c[4], c[5]); if (c[4] == c[5] && c[2] == c[3]) printf("Yes"); else printf("No"); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { char c[6]; scanf("%c%c%c%c%c%c", &c[0], &c[1], &c[2], &c[3], &c[4], &c[5]); if (c[4] == c[5] && c[2] == c[3]) printf("Yes"); else printf("No"); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
102
package main import ( "bufio" "fmt" "os" ) var sc = bufio.NewScanner(os.Stdin) func main() { var s string if sc.Scan() { s = sc.Text() } fmt.Println(s) if s[2:3] == s[3:4] && s[4:5] == s[5:6] { fmt.Println("Yes") } else { fmt.Println("No") } }
package main import ( "bufio" "fmt" "os" ) var sc = bufio.NewScanner(os.Stdin) func main() { var s string if sc.Scan() { s = sc.Text() } if s[2:3] == s[3:4] && s[4:5] == s[5:6] { fmt.Println("Yes") } else { fmt.Println("No") } }
[["-", 8, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 36, 36, 0, 434, 0, 435, 8, 196, 0, 165]]
7
118
#include <bits/stdc++.h> using namespace std; string s; int main() { cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "YES"; else cout << "NO"; cout << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; string s; int main() { cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes"; else cout << "No"; cout << '\n'; 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
63
#include <stdio.h> int main() { char *a; scanf("%s", a); if (a[2] == a[3] && a[4] == a[5]) printf("Yes"); else printf("No"); }
#include <stdio.h> int main() { char a[10]; scanf("%s", a); if (a[2] == a[3] && a[4] == a[5]) printf("Yes"); else printf("No"); }
[["-", 0, 14, 8, 9, 0, 43, 49, 84, 0, 48], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 73]]
0
58
#include <bits/stdc++.h> using namespace std; #define ll long long typedef pair<int, int> pi; #define f first #define s second #define FAST \ ios_base::sync_with_stdio(0); \ cin.tie(0); #define all(x) x....
#include <bits/stdc++.h> using namespace std; #define ll long long typedef pair<int, int> pi; #define f first #define s second #define FAST \ ios_base::sync_with_stdio(0); \ cin.tie(0); #define all(x) x....
[["-", 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
82
//============================================================================ // Name : Hello5.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <bi...
//============================================================================ // Name : Hello5.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <bi...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
116
import sys def fastio(): from io import StringIO from atexit import register global input sys.stdin = StringIO(sys.stdin.read()) input = lambda : sys.stdin.readline().rstrip('\r\n') sys.stdout = StringIO() register(lambda : sys.__stdout__.write(sys.stdout.getvalue())) fastio() INF = 10**20 ...
import sys def fastio(): from io import StringIO from atexit import register global input sys.stdin = StringIO(sys.stdin.read()) input = lambda : sys.stdin.readline().rstrip('\r\n') sys.stdout = StringIO() register(lambda : sys.__stdout__.write(sys.stdout.getvalue())) fastio() INF = 10**20 ...
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["-", 0, 57, 15, 679, 12, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 206, 612]]
5
174
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long int li; typedef long double lb; #define rep(i, j, n) for (ll i = j; i < (n); i++) #define repr(i, j, n) for (ll i = j; i >= (n); i--) #define all(x) (x).begin(), (x).end() #define CLR(mat, f) memset(mat, f, sizeof(mat)) #define IN(a, b, x...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long int li; typedef long double lb; #define rep(i, j, n) for (ll i = j; i < (n); i++) #define repr(i, j, n) for (ll i = j; i >= (n); i--) #define all(x) (x).begin(), (x).end() #define CLR(mat, f) memset(mat, f, sizeof(mat)) #define IN(a, b, x...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
229
#include <stdio.h> int main() { int a[6]; scanf("%s", &a); if (a[2] == a[3] && a[4] == a[5]) { printf("Yes\n"); } else { printf("No\n"); } }
#include <stdio.h> int main() { char a[6]; scanf("%s", &a); if (a[2] == a[3] && a[4] == a[5]) { printf("Yes\n"); } else { printf("No\n"); } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
67
/*Stay true to yourself, yet always be open to learn. Work hard, and never give up on your dreams, even when nobody else believes they can come true but you. These are not cliches but real tools you need no matter what you do in life to stay focused on your path. */ /*Pppppppp UU UU CCCCCCCC CCCCCCCC ...
/*Stay true to yourself, yet always be open to learn. Work hard, and never give up on your dreams, even when nobody else believes they can come true but you. These are not cliches but real tools you need no matter what you do in life to stay focused on your path. */ /*Pppppppp UU UU CCCCCCCC CCCCCCCC ...
[["-", 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
186
#include <iostream> using namespace std; int main() { string s; char c[6]; for (int i = 0; i < 6; i++) { c[i] = s[i]; } if (c[2] == c[3] && c[4] == c[5]) { cout << "Yes"; } else { cout << "No"; } }
#include <iostream> using namespace std; int main() { string s; cin >> s; char c[6]; for (int i = 0; i < 6; i++) { c[i] = s[i]; } if (c[2] == c[3] && c[4] == c[5]) { cout << "Yes"; } else { cout << "No"; } }
[["+", 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
86
#include <stdio.h> int main() { char a[6]; scanf("%s", a); if (a[2] == a[3] && a[4] == a[5]) { printf("yes\n"); } else { printf("no\n"); } return 0; }
#include <stdio.h> int main() { char a[6]; scanf("%s", a); if (a[2] == a[3] && a[4] == a[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
69
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <vector> using namespace std; typedef long long ll; #define pii pair<int, int> #define mk make_pair const int N = 2e5 + 10; const int mod = 1e9 + 7; char s[N]; int mai...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <vector> using namespace std; typedef long long ll; #define pii pair<int, int> #define mk make_pair const int N = 2e5 + 10; const int mod = 1e9 + 7; char s[N]; int mai...
[["-", 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
106
import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String[] strArray = new String[S.length()]; for (int i = 0; i < S.le...
import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String[] strArray = new String[S.length()]; for (int i = 0; i < S.le...
[["-", 0, 195, 8, 196, 0, 57, 15, 15, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 0, 57, 64, 196, 0, 57, 15, 15, 0, 24], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46]]
3
237
S = input() flag = True if (S[2] != S[3]): flag = False if (S[4] != S[4]): flag = False if flag: print('Yes') else: print('No')
S = input() flag = True if (S[2] != S[3]): flag = False if (S[4] != S[5]): flag = False if flag: print('Yes') else: print('No')
[["-", 0, 57, 15, 23, 0, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 23, 0, 666, 0, 206, 206, 612]]
5
57
#include <stdio.h> int main() { char c[6]; scanf("%s", &c); if (c[2] == c[3] && c[4] == c[5]) { printf("Yes\n"); } else ("No\n"); return 0; }
#include <stdio.h> int main() { char c[6]; scanf("%s", &c); if (c[2] == c[3] && c[4] == c[5]) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
0
67
S=input() ans="No" if(S[2]==S[3]): if(S[4]==S[5]): ans="yes" print(ans)
S=input() ans="No" if(S[2]==S[3]): if(S[4]==S[5]): ans="Yes" print(ans)
[["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
45
a = input() if len(a) == 6: print("No") else: if (a[2] == a[3])and(a[4] == a[5]): print("Yes") else: print("No")
a = input() if len(a) != 6: print("No") else: if (a[2] == a[3])and(a[4] == a[5]): print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79]]
5
60
S = str(input()) print('YES' if S[2] == S[3] and S[4] ==S[5] else 'NO' )
S = str(input()) print('Yes' if S[2]==S[3] and S[4]==S[5] else 'No')
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
38
#include <bits/stdc++.h> #define X first #define Y second #define PB push_back #define ll long long #define pii pair<ll, ll> #define MEM(x, y) memset(x, y, sizeof(x)) #define bug(x) cout << "debug " #x " is " << x << endl; #define FIO ios::sync_with_stdio(false); #define ALL(x) x.begin(), x.end() #define LOG 20 #define...
#include <bits/stdc++.h> #define X first #define Y second #define PB push_back #define ll long long #define pii pair<ll, ll> #define MEM(x, y) memset(x, y, sizeof(x)) #define bug(x) cout << "debug " #x " is " << x << endl; #define FIO ios::sync_with_stdio(false); #define ALL(x) x.begin(), x.end() #define LOG 20 #define...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 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
147
#include <iostream> using namespace std; int main() { char *S = new char[6]; cin >> S; if (S[2] == S[3] || S[4] == S[5]) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main() { char *S = new char[6]; cin >> S; if (S[2] == S[3] && S[4] == S[5]) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
72
#include <bits/stdc++.h> using namespace std; int main() { string lang; cin >> lang; if ((int)lang.length() == 6) { string a = lang.substr(2, 1); string b = lang.substr(3, 1); string c = lang.substr(4, 1); string d = lang.substr(5, 1); if (a == b && c == d) cout << "yes" << endl; e...
#include <bits/stdc++.h> using namespace std; int main() { string lang; cin >> lang; if ((int)lang.length() == 6) { string a = lang.substr(2, 1); string b = lang.substr(3, 1); string c = lang.substr(4, 1); string d = lang.substr(5, 1); if (a == b && c == d) cout << "Yes" << endl; e...
[["-", 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
118
#include <bits/stdc++.h> using namespace std; int main() { int i, n; string s; cin >> s; n = s.size(); for (i = 0; i < n; i++) { if (s[0] != s[1] && s[1] != s[2] && s[2] == s[3] && s[4] == s[5]) { cout << "YES"; break; } else cout << "NO"; break; } }
#include <bits/stdc++.h> using namespace std; int main() { int i, n; string s; cin >> s; n = s.size(); for (i = 0; i < n; i++) { if (s[0] != s[1] && s[1] != s[2] && s[2] == s[3] && s[4] == s[5]) { cout << "Yes"; break; } else cout << "No"; break; } }
[["-", 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
108
#include <iostream> using namespace std; int main() { char s[10]; cin >> s; if (s[2] == s[3] && s[4] == s[5]) printf("Yes"); else cout << "N0"; return 0; }
#include <iostream> using namespace std; int main() { char s[10]; cin >> s; if (s[2] == s[3] && s[4] == s[5]) printf("Yes"); else cout << "No"; return 0; }
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
61
s = input() flag = True if len(s) != 6: flag = False for i in s: if ord(i) < 97 or ord(i) > 122: flag = False if len(s) == 6: if s[2] != s[3]: flag = False if s[4] != s[5]: flag = False if flag: print("YES") else: print("NO")
s = input() flag = True if len(s) != 6: flag = False for i in s: if ord(i) < 97 or ord(i) > 122: flag = False if len(s) == 6: if s[2] != s[3]: flag = False if s[4] != s[5]: flag = False if flag: 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
95
#include <stdio.h> int a[300] = {0}; int main() { char s[7]; int ans = 0, flag = 1; for (int i = 1; i <= 6; i++) { scanf("%c", &s[i]); if (a[s[i]] == 0) ans++, a[s[i]]++; // if(s[i]>='A'&&s[i]<='Z') // flag=0; } if (s[3] == s[4] && s[5] == s[6]) printf("YES"); else printf("NO")...
#include <stdio.h> int a[300] = {0}; int main() { char s[7]; int ans = 0, flag = 1; for (int i = 1; i <= 6; i++) { scanf("%c", &s[i]); if (a[s[i]] == 0) { ans++; a[s[i]]++; } // if(s[i]>='A'&&s[i]<='Z') // flag=0; } if (s[3] == s[4] && s[5] == s[6]) printf("Yes"); else ...
[["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 8, 9, 0, 57, 64, 1, 0, 34, 0, 21], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 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]]
0
128
/*..............Bismillahir Rahmanir Rahim.............*/ /** * => Md. Sajjat Hosen * => Department of Computer Science and Engineering * => Bangabandhu Sheikh Mujibur Rahman Science and Technology University **/ /*..................! TRY ONCE MORE !..................*/ /*...Part - 01...*/ #include <...
/*..............Bismillahir Rahmanir Rahim.............*/ /** * => Md. Sajjat Hosen * => Department of Computer Science and Engineering * => Bangabandhu Sheikh Mujibur Rahman Science and Technology University **/ /*..................! TRY ONCE MORE !..................*/ /*...Part - 01...*/ #include <...
[["-", 8, 9, 0, 57, 64, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 2, 63, 22], ["-", 0, 57, 75, 76, 0, 1, 0, 2, 63, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 2, 63, 22]]
1
496
s = input() print("Yes" if s[2] == s[3] and s[4] == s[5] else "NO")
s = input() print("Yes" if s[2] == s[3] and s[4] == s[5] else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
35
if len(S) == 6 and S[2]==S[3] and S[4]==S[5]: print('Yes') else: print('No')
S = input() if len(S) == 6 and S[2]==S[3] and S[4]==S[5]: 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
42
#include <bits/stdc++.h> using namespace std; int main() { string s; getline(cin, s); if ((s.at(3) == s.at(4)) && (s.at(5) == s.at(6))) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; getline(cin, s); if ((s.at(2) == s.at(3)) && (s.at(4) == s.at(5))) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 31, 23, 0, 16, 31, 2, 3, 4, 0, 13], ["+", 31, 23, 0, 16, 31, 2, 3, 4, 0, 13], ["-", 31, 23, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 23, 0, 16, 12, 2, 3, 4, 0, 13], ["-", 12, 23, 0, 16, 31, 2, 3, 4, 0, 13], ["+", 12, 23, 0, 16, 31, 2, 3, 4, 0, 13], ["-", 12, 23, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 12, 23, 0, 16, 12, ...
1
76
#pragma GCC optimize( \ "Ofast") // Comment optimisations for interactive problems (use endl) #pragma GCC target("avx,avx2,fma") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> using namespace std; #define fastio ...
#pragma GCC optimize( \ "Ofast") // Comment optimisations for interactive problems (use endl) #pragma GCC target("avx,avx2,fma") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> using namespace std; #define fastio ...
[["-", 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
334
#include <stdio.h> int main() { char a, b, c, d, e, f; scanf("%c%c%c%c%c%c", &a, &b, &c, &d, &e, &f); if (c == d & e == f) { printf("YES"); } else { printf("NO"); } return 0; }
#include <stdio.h> int main() { char a, b, c, d, e, f; scanf("%c%c%c%c%c%c", &a, &b, &c, &d, &e, &f); if (c == d & e == f) { printf("Yes"); } 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
78
#include <stdio.h> int main() { int i; char a[100]; scanf("%s", a); if (a[2] == a[3] || a[4] == a[5]) printf("Yes"); else printf("No"); return (0); }
#include <stdio.h> int main() { int i; char a[100]; scanf("%s", a); if (a[2] == a[3] && a[4] == a[5]) printf("Yes"); else printf("No"); return (0); }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]]
0
68
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s; cin >> 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; typedef long long ll; int main() { string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
66
#include <algorithm> #include <array> #include <cmath> #include <functional> #include <iostream> #include <numeric> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; int main() { char s[6]; cin >> s; if (s[2] = s[3] && s[4] == s[5]) cout << "Yes"; else cout << "...
#include <algorithm> #include <array> #include <cmath> #include <functional> #include <iostream> #include <numeric> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; int main() { char s[6]; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes"; else cout << ...
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60]]
1
75
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; string a, b, c, d; a = S[2]; b = S[3]; c = S[4]; d = S[5]; if (a == b || c == d) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; string a, b, c, d; a = S[2]; b = S[3]; c = S[4]; d = S[5]; if (a == b && c == d) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
92
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String str = s.next(); System.out.println(str.charAt(2) == str.charAt(3) && str.charAt(4) == str.charAt(5) ? "YES" ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String str = s.next(); System.out.println(str.charAt(2) == str.charAt(3) && str.charAt(4) == str.charAt(5) ? "Yes" ...
[["-", 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
86
#include <iostream> using namespace std; const int N = 10; char str[N]; int main() { cin >> str; if (str[2] == str[4] && str[3] == str[5]) { puts("Yes"); } else { puts("No"); } }
#include <iostream> using namespace std; const int N = 10; char str[N]; int main() { cin >> str; if (str[2] == str[3] && str[4] == str[5]) { puts("Yes"); } else { puts("No"); } }
[["-", 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
69
i_str = input() anser = 'No' if i_str[3:3] == i_str[4:4]: if i_str[5:5] == i_str[6:6]: anser = 'Yes' print(anser)
i_str = input() anser = 'No' if i_str[2:3] == i_str[3:4]: if i_str[4:5] == i_str[5:6]: anser = 'Yes' print(anser)
[["-", 0, 57, 15, 666, 0, 206, 206, 663, 0, 612], ["+", 0, 57, 15, 666, 0, 206, 206, 663, 0, 612]]
5
49
#include <bits/stdc++.h> using namespace std; int main() { string s; if (s[2] == s[3] && s[5] == s[4]) cout << "Yes"; else cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[2] == s[3] && s[5] == s[4]) cout << "Yes"; else cout << "No"; }
[["+", 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
50
#include <bits/stdc++.h> using namespace std; int main() { string str; if ((str[2] == str[3]) && (str[4] == str[5])) { cout << "Yes" << endl; } else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; if ((str[2] == str[3]) && (str[4] == str[5])) { cout << "Yes" << endl; } else cout << "No" << endl; }
[["+", 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
60
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); String arr[] = S.split(""); // int N = sc.nextInt(); if (arr[2].equals(arr[3]) || arr[4].equals(arr[5])) { System.out.println("Yes"); } else { ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); String arr[] = S.split(""); // int N = sc.nextInt(); if (arr[2].equals(arr[3]) && arr[4].equals(arr[5])) { System.out.println("Yes"); } else { ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
119
s = input() if len(s) == 6 and s[2] == s[3] and s[4] == s[5]: print('Yse') else: print('No')
s = input() if len(s) == 6 and 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
47
#include <stdio.h> int main() { char vetor[7]; scanf("%s", &vetor); if ((vetor[2] == vetor[3]) && !(vetor[4] == vetor[5])) printf("Yes\n"); else printf("No\n"); return 0; }
#include <stdio.h> int main() { char vetor[7]; scanf("%s", &vetor); if ((vetor[2] == vetor[3]) && (vetor[4] == vetor[5])) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 12, 91, 17, 111]]
0
71
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if ((s[2] == s[3]) && (s[4] == s[5])) cout << "YES\n"; else cout << "N0\n"; 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\n"; else cout << "No\n"; 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
63