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 all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define MIN(a) *min_element(all(a))
#define MAX(a) *max_element(all(a))
#define SUM(a) accumulate(all(a), 0LL)
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define RREP(i, n) for (int(i)... | #include <bits/stdc++.h>
using namespace std;
#define all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define MIN(a) *min_element(all(a))
#define MAX(a) *max_element(all(a))
#define SUM(a) accumulate(all(a), 0LL)
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define RREP(i, n) for (int(i)... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 396 |
#include <bits/stdc++.h>
#define int long long
using namespace std;
constexpr int mod = 1e9 + 7;
signed main() {
int n;
cin >> n;
vector<int> div;
int ans = 0;
for (int i = 1; i * i <= n; i++) {
if (n % i == 0) {
if (i != 1)
div.push_back(i);
if (i * i != n)
div.push_back(n / i... | #include <bits/stdc++.h>
#define int long long
using namespace std;
constexpr int mod = 1e9 + 7;
signed main() {
int n;
cin >> n;
vector<int> div;
int ans = 0;
for (int i = 1; i * i <= n; i++) {
if (n % i == 0) {
if (i != 1)
div.push_back(i);
if (i * i != n)
div.push_back(n / i... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 220 |
#define LOCAL
#define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#inc... | #define LOCAL
#define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#inc... | [["-", 0, 57, 64, 1, 0, 2, 3, 4, 0, 22], ["+", 0, 57, 64, 1, 0, 2, 3, 4, 0, 22]] | 1 | 876 |
#include <bits/stdc++.h>
#define int long long
#define f first
#define s second
using namespace std;
int32_t main() {
if (fopen("input.txt", "r"))
freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
ios::sync_with_stdio(0), cin.tie(0);
int n, ans = 0;
cin >> n;
if (n > 2)
ans++;
fo... | #include <bits/stdc++.h>
#define int long long
#define f first
#define s second
using namespace std;
int32_t main() {
if (fopen("input.txt", "r"))
freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
ios::sync_with_stdio(0), cin.tie(0);
int n, ans = 0;
cin >> n;
if (n > 2)
ans++;
fo... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 233 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
ll mod = 1e9 + 7;
const ld error = 1e-8;
const ld PI = acosl(-1); // const ld PI = acosl(-1)
#define FASTIO \
ios_base::... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
ll mod = 1e9 + 7;
const ld error = 1e-8;
const ld PI = acosl(-1); // const ld PI = acosl(-1)
#define FASTIO \
ios_base::... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 311 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#prag... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#prag... | [["+", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 273 |
// Date: 2020-04-04
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef long double LD;
typedef vector<int> VI;
typedef pair<LL, LL> pll;
typedef pair<int, int> pii;
#define IO \
freopen("in.txt", "r", stdin); ... | // Date: 2020-04-04
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef long double LD;
typedef vector<int> VI;
typedef pair<LL, LL> pll;
typedef pair<int, int> pii;
#define IO \
freopen("in.txt", "r", stdin); ... | [["-", 0, 9, 0, 57, 64, 9, 0, 43, 39, 40], ["+", 0, 9, 0, 57, 64, 9, 0, 43, 39, 78]] | 1 | 434 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
;
vector<ll> divs(ll n) {
vector<ll> res;
ll j = 0;
for (ll i = 1; i * i <= n; i++)
if (n % i == 0) {
j = i;
res.push_back(i);
res.push_back(n / i);
}
if (j * j == n)
res.pop_back();
return res;
}
int main() {... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
;
vector<ll> divs(ll n) {
vector<ll> res;
ll j = 0;
for (ll i = 1; i * i <= n; i++)
if (n % i == 0) {
j = i;
res.push_back(i);
res.push_back(n / i);
}
if (j * j == n)
res.pop_back();
return res;
}
int main() {... | [["-", 64, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 64, 9, 0, 52, 15, 339, 51, 16, 17, 60], ["+", 64, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 215 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define sz(x) ((int)x.size())
#define all(x) (x).begin(), (x).end()
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define mset(x, y) memset(x, y, sizeof(x))
#define rep(i, n) for (int i ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define sz(x) ((int)x.size())
#define all(x) (x).begin(), (x).end()
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define mset(x, y) memset(x, y, sizeof(x))
#define rep(i, n) for (int i ... | [["+", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 770 |
#pragma GCC optimize("Ofast,fast-math,unroll-loops")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define all(v) v.begin(), v.end()
#define sz(v) (int)v.size()
#define fi first
#define se second
#define sqrt(x) sqrt(abs(x))
#define sqr(x) ((x) * (x))
#define u... | #pragma GCC optimize("Ofast,fast-math,unroll-loops")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define all(v) v.begin(), v.end()
#define sz(v) (int)v.size()
#define fi first
#define se second
#define sqrt(x) sqrt(abs(x))
#define sqr(x) ((x) * (x))
#define u... | [["-", 64, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 580 |
#include <bits/stdc++.h>
#define fst(t) std::get<0>(t)
#define snd(t) std::get<1>(t)
#define thd(t) std::get<2>(t)
#define unless(p) if (!(p))
#define until(p) while (!(p))
using ll = std::int64_t;
using P = std::tuple<int, int>;
ll N;
std::vector<ll> divisors(ll n) {
std::vector<ll> res;
for (ll i = 1; i * i ... | #include <bits/stdc++.h>
#define fst(t) std::get<0>(t)
#define snd(t) std::get<1>(t)
#define thd(t) std::get<2>(t)
#define unless(p) if (!(p))
#define until(p) while (!(p))
using ll = std::int64_t;
using P = std::tuple<int, int>;
ll N;
std::vector<ll> divisors(ll n) {
std::vector<ll> res;
for (ll i = 1; i * i ... | [["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13]] | 1 | 290 |
import math
N = int(input())
def yakusu(n):#約数列挙
list1 = []
list2 = []
for i in range(1, int(math.sqrt(n)) + 1):
if n % i == 0:
list1.append(i)
if i != n // i:
list2.append(n // i)
list2.reverse()
return list1 + list2
def A(x):
m = l1[len1 - i]
... | import math
N = int(input())
def yakusu(n):#約数列挙
list1 = []
list2 = []
for i in range(1, int(math.sqrt(n)) + 1):
if n % i == 0:
list1.append(i)
if i != n // i:
list2.append(n // i)
list2.reverse()
return list1 + list2
def A(x):
m = l1[len1 - i -... | [["+", 0, 1, 0, 662, 12, 206, 206, 657, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 657, 12, 612]] | 5 | 180 |
#pragma region Macros
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define rep2(i, a, b) for (ll i = a; i <= b; ++i)
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep3(i, a, b) for (ll i = a; i >= b; i--)
#define pii pair<int, int>
#define pll pair<ll, ll>
#defi... | #pragma region Macros
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define rep2(i, a, b) for (ll i = a; i <= b; ++i)
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep3(i, a, b) for (ll i = a; i >= b; i--)
#define pii pair<int, int>
#define pll pair<ll, ll>
#defi... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 1,232 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
int ans = 1;
for (ll i = 2; i * i <= n; i++) {
if (n % i == 0) {
ll t = n;
while (t % i == 0) {
t /= i;
}
if ((t - 1) % i == 0) {
ans++;
}
t = n;
if (i * ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
int ans = 1;
for (ll i = 2; i * i <= n; i++) {
if (n % i == 0) {
ll t = n;
while (t % i == 0) {
t /= i;
}
if ((t - 1) % i == 0) {
ans++;
}
t = n;
if (i * ... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 200 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll N;
cin >> N;
ll M = N - 1;
ll ans = 0;
ll MAX = sqrt(M);
for (ll i = 2; i <= MAX; i++) {
if (M % i == 0)
ans += 2;
}
if (MAX * MAX == M)
ans++;
ans++; // N ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll N;
cin >> N;
ll M = N - 1;
ll ans = 0;
ll MAX = sqrt(M);
for (ll i = 2; i <= MAX; i++) {
if (M % i == 0)
ans += 2;
}
if (MAX * MAX == M)
ans--;
ans++; // N ... | [["-", 8, 9, 0, 57, 64, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 57, 64, 1, 0, 27, 17, 68]] | 1 | 234 |
#include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n;
cin >> n;
ll ans = 0;
if (n == 2) {
ans = 0;
} else {
vector<ll> div;
for (ll i = 2; i * i <= n; i++) {
if (n % i == 0) {
if (i * i != n) {
... | #include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n;
cin >> n;
ll ans = 0;
if (n == 2) {
ans = 1;
} else {
vector<ll> div;
for (ll i = 2; i * i <= n; i++) {
if (n % i == 0) {
if (i * i != n) {
... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13]] | 1 | 299 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
ll ans = 0;
vector<ll> divisor(ll n) {
vector<ll> div;
for (ll i = 1; i * i <= n; i++) {
if (n % i == 0) {
div.push_back(i);
if (n / i != i)
div.push_back(n / i);
}
}
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
ll ans = 0;
vector<ll> divisor(ll n) {
vector<ll> div;
for (ll i = 1; i * i <= n; i++) {
if (n % i == 0) {
div.push_back(i);
if (n / i != i)
div.push_back(n / i);
}
}
... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 224 |
#nの約数とn-1の約数全部愚直
n = int(input())
fct1 = []
fct2 = []
for i in range(1,int(n**(1/2))+10):
if n%i==0:
fct1.append(i)
fct2.append(n//i)
if (n-1)%i==0:
fct1.append(i)
fct2.append((n-1)//i)
fct = set(fct1+fct2)
if 1 in fct:
fct.remove(1)
ans = 0
for k in fct:
n2 = n
whil... | #nの約数とn-1の約数全部愚直
n = int(input())
fct1 = []
fct2 = []
for i in range(1,int(n**(1/2))+10):
if n%i==0:
fct1.append(i)
fct2.append(n//i)
if (n-1)%i==0:
fct1.append(i)
fct2.append((n-1)//i)
fct = set(fct1+fct2)
if 1 in fct:
fct.remove(1)
ans = 0
for k in fct:
n2 = n
whil... | [["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 148 |
#include <bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL << ((ll)n))
#define SHIFT_LEFT(n) (1LL << ((ll)n))
#define SUBS(s, f, t) (... | #include <bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL << ((ll)n))
#define SHIFT_LEFT(n) (1LL << ((ll)n))
#define SUBS(s, f, t) (... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 338, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 338, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 313 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n;
ll cal1(ll m) {
ll cnt = 0;
for (ll i = 2; i * i <= m; i++) {
if (m % i == 0) {
cnt++;
if (i != m / i) {
cnt++;
}
}
}
cnt++;
return cnt;
}
ll cal2(ll m) {
ll cnt = 0;
for (ll i = 2; i * i <= m; i+... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n;
ll cal1(ll m) {
ll cnt = 0;
for (ll i = 2; i * i <= m; i++) {
if (m % i == 0) {
cnt++;
if (i != m / i) {
cnt++;
}
}
}
if (m > 1)
cnt++;
return cnt;
}
ll cal2(ll m) {
ll cnt = 0;
for (ll i = 2;... | [["+", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 184 |
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
#define ln '\n'
constexpr long long MOD = 1000000007LL;
// constexpr long long MOD = 998244353LL;
typedef long long ll;
typedef unsigned long long ull;
typede... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
#define ln '\n'
constexpr long long MOD = 1000000007LL;
// constexpr long long MOD = 998244353LL;
typedef long long ll;
typedef unsigned long long ull;
typede... | [["+", 64, 1, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 64, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["-", 0, 338, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 338, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 52, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8... | 1 | 317 |
// In The Name Of Allah
#include <bits/stdc++.h>
#define ss second
#define ff first
#define use_fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define ret(n) return cout << n, 0
#define se(n) cout << setprecision(n) << fixed
#define pb push_back
#define int long long
#define ld lo... | // In The Name Of Allah
#include <bits/stdc++.h>
#define ss second
#define ff first
#define use_fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define ret(n) return cout << n, 0
#define se(n) cout << setprecision(n) << fixed
#define pb push_back
#define int long long
#define ld lo... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 279 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
bool check(int a, int b) {
while (b % a == 0)
b /= a;
return (b % a) == 1;
}
void solve() {
int n;
cin >> n;
int ans = 1;
for (int i = 1; i * i <= n - 1; ++i) {
if ((n - 1) % i)
continue;
if (i != 1)
++ans;
i... | #include <bits/stdc++.h>
using namespace std;
#define int long long
bool check(int a, int b) {
while (b % a == 0)
b /= a;
return (b % a) == 1;
}
void solve() {
int n;
cin >> n;
int ans = 1;
for (int i = 1; i * i <= n - 1; ++i) {
if ((n - 1) % i)
continue;
if (i != 1)
++ans;
i... | [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25]] | 1 | 207 |
//#include<bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
/*
#include <boost/multiprecision/cpp_dec_float.hpp>
#include<boost/multiprecision/cpp_int.hpp>
#include <boost/rational.hpp>
namespace mp = boost::multiprecision;
using ... | //#include<bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
/*
#include <boost/multiprecision/cpp_dec_float.hpp>
#include<boost/multiprecision/cpp_int.hpp>
#include <boost/rational.hpp>
namespace mp = boost::multiprecision;
using ... | [["+", 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 | 110 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#define ll long long
#define wolfe \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#define ll long long
#define wolfe \
ios_base::sync_with_stdio(0); \
cin.tie(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 | 81 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
using namespace std;
const ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
using namespace std;
const ... | [["-", 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], ["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]] | 1 | 198 |
package main
import (
"fmt"
)
func main() {
var s string
fmt.Scan(&s)
if s[2] == s[3] && s[4] == s[6] {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
| package main
import (
"fmt"
)
func main() {
var s string
fmt.Scan(&s)
if s[2] == s[3] && s[4] == s[5] {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
| [["-", 0, 57, 15, 16, 12, 16, 12, 437, 71, 433], ["+", 0, 57, 15, 16, 12, 16, 12, 437, 71, 433]] | 7 | 74 |
#include <iostream>
using namespace std;
#define ll long long
int main() {
string S;
cin >> S;
if (S[2] == S[3] && S[4] == S[6]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
#define ll long long
int main() {
string S;
cin >> S;
if (S[2] == S[3] && S[4] == S[5]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]] | 1 | 68 |
#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;
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]] | 1 | 70 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string S;
cin >> S;
bool flag = true;
if (S[2] == S[3])
flag = false;
if (S[4] == S[5])
flag = false;
if (flag)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string S;
cin >> S;
bool flag = true;
if (S[2] != S[3])
flag = false;
if (S[4] != S[5])
flag = false;
if (flag)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
string S;
cin >> S;
if (S[2] == S[3]) {
if (S[4] == S[5]) {
cout << "Yes" << endl;
}
} else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string S;
cin >> S;
if (S[2] == S[3]) {
if (S[4] == S[5]) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
} | [["+", 64, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 64, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 64, 9, 0, 57, 64, 9, 0, 37, 0, 35], ["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 68 |
s = gets
if s[2]==s[3] && s[4]==s[5]
put :Yes
else
puts :No
end | s = gets
if s[2]==s[3] && s[4]==s[5]
puts :Yes
else
puts :No
end
| [["-", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22]] | 4 | 29 |
#include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace... | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if ((S.at(3) == S.at(4)) && (S.at(5) == S.at(6)))
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;
} | [["-", 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 | 70 |
#include <stdio.h>
int main() {
int s[7];
scanf("%s", s);
if (s[2] == s[3] && s[4] == s[5])
printf("Yes");
else
printf("No");
} | #include <stdio.h>
int main() {
char s[7];
scanf("%s", s);
if (s[2] == s[3] && s[4] == s[5])
printf("Yes");
else
printf("No");
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 0 | 60 |
#include <iostream>
#include <string>
#define optimize() \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl '\n'
using ... | #include <iostream>
#include <string>
#define optimize() \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl '\n'
using ... | [["-", 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 | 69 |
#include <stdio.h>
int main(void) {
char s[7];
scanf("%s", s);
int bool = 0;
for (int i = 2; i < 6; i += 2) {
if (s[i] == s[i + 1]) {
bool += 1;
}
}
if (bool == 0) {
printf("No");
} else {
printf("Yes");
}
return 0;
}
| #include <stdio.h>
int main(void) {
char s[7];
scanf("%s", s);
int bool = 0;
for (int i = 2; i < 6; i += 2) {
if (s[i] == s[i + 1]) {
bool += 1;
}
}
if (bool == 2) {
printf("Yes");
} else {
printf("No");
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 95 |
s=int(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, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 43 |
using namespace std;
#include <bits/stdc++.h>
int main() {
string s;
cin >> s;
if (s[2] == s[3]) {
if (s[4] == s[5]) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "no" << std::endl;
}
} else {
std::cout << "No" << std::endl;
}
} | using namespace std;
#include <bits/stdc++.h>
int main() {
string s;
cin >> s;
if (s[2] == s[3]) {
if (s[4] == s[5]) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} else {
std::cout << "No" << std::endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 89 |
#include <iostream>
#include <string.h>
using namespace std;
int main() {
char kata[10];
cin >> kata;
if (kata[2] == kata[3]) {
if (kata[4] == kata[5]) {
cout << "Yes" << endl;
}
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
#include <string.h>
using namespace std;
int main() {
char kata[10];
cin >> kata;
if (kata[2] == kata[3] && kata[4] == kata[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, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 1 | 74 |
#include <stdio.h>
void main() {
char s[6];
scanf("%s", s);
if (s[2] == s[3] && s[4] == s[5]) {
printf("Yes");
} else {
printf("NO");
}
} | #include <stdio.h>
void main() {
char s[6];
scanf("%s", s);
if (s[2] == s[3] && s[4] == s[5]) {
printf("Yes");
} else {
printf("No");
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 64 |
/*
* AUTHOR : Haoyang(Max) Chen
* INSTITUTION : Australian National Unversity
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
string input;
cin >> input;
if (input[2] == inpu... | /*
* AUTHOR : Haoyang(Max) Chen
* INSTITUTION : Australian National Unversity
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
string input;
cin >> input;
if (input[2] == inpu... | [["-", 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 | 105 |
a,b,c,d,e,f = input()
if c == d or 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") | [["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]] | 5 | 38 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
String S = stdIn.next();
char S3 = S.charAt(2);
char S4 = S.charAt(3);
char S5 = S.charAt(4);
char S6 = S.charAt(5);
if (S3 == S4 || S5 == S6) {
System.out.... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
String S = stdIn.next();
char S3 = S.charAt(2);
char S4 = S.charAt(3);
char S5 = S.charAt(4);
char S6 = S.charAt(5);
if (S3 == S4 && S5 == S6) {
System.out.... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]] | 3 | 127 |
#include <bits/stdc++.h>
using namespace std;
#define ld double
#define ll long long
#define pb emplace_back
#define mk make_pair
#define mod 1000000007
#define ff first
#define ss second
#define sz(x) (int)x.size()
#define FIO \
ios_base::sync_with_s... | #include <bits/stdc++.h>
using namespace std;
#define ld double
#define ll long long
#define pb emplace_back
#define mk make_pair
#define mod 1000000007
#define ff first
#define ss second
#define sz(x) (int)x.size()
#define FIO \
ios_base::sync_with_s... | [["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 190 |
s = gets.chomp.split('')
if(s[2] == s[3] || s[4] == s[5])
puts "Yes"
else
puts "No"
end
|
s = gets.chomp.split('')
if(s[2] == s[3] && s[4] == s[5])
puts "Yes"
else
puts "No"
end | [["-", 0, 493, 0, 121, 15, 739, 0, 738, 17, 106], ["+", 0, 493, 0, 121, 15, 739, 0, 738, 17, 98]] | 4 | 43 |
# A Coffee
S = input()
if S[2] == S[3] and S[4] == S[5]:
print("Yes")
else:
print("") | # A Coffee
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, 6]] | 5 | 40 |
s=input();print('NYOE S'[s[2]==s[3]and s[4]==s[5]::2]) | s=input();print('NYoe s'[s[2]==s[3]and s[4]==s[5]::2]) | [["-", 0, 652, 3, 4, 0, 206, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 206, 51, 557, 0, 6]] | 5 | 36 |
#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;
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 62 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
string s, ans = "No";
cin >> s;
if (s[2] == s[4] && s[3] == s[5])
ans = "Yes";
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
string s, ans = "No";
cin >> s;
if (s[2] == s[3] && s[4] == s[5])
ans = "Yes";
cout << ans << endl;
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 | 65 |
#include <stdio.h>
int main() {
char s[7];
scanf("%s", s);
if (s[2] == s[3]) {
if (s[4] == s[5]) {
printf("Yes\n");
}
} else
printf("No\n");
return 0;
} | #include <stdio.h>
int main() {
char s[7];
scanf("%s", s);
if (s[2] == s[3] && s[4] == s[5]) {
printf("Yes\n");
} else
printf("No\n");
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 | 71 |
#include <bits/stdc++.h>
using namespace std;
int main() {
char T[7];
for (int i = 1; i < 7; i++) {
cin >> T[i];
}
if (T[4] == T[3] and T[5] == T[6]) {
cout << "YES\n";
} else
cout << "NO\n";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
char T[7];
for (int i = 1; i < 7; i++) {
cin >> T[i];
}
if (T[4] == T[3] and T[5] == T[6]) {
cout << "Yes\n";
} else
cout << "No\n";
}
| [["-", 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 | 80 |
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 print('No') | [["+", 0, 656, 0, 1, 0, 41, 0, 652, 63, 22]] | 5 | 37 |
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
string S;
cin >> S;
bool ans = true;
if (S[2] != S[3])
ans = false;
if (S[3] != S[4])
ans = false;
printf(ans ? "Yes" : "No");
return 0;
}
| #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
string S;
cin >> S;
bool ans = true;
if (S[2] != S[3])
ans = false;
if (S[4] != S[5])
ans = false;
printf(ans ? "Yes" : "No");
return 0;
}
| [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["-", 15, 339, 51, 16, 12, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 13]] | 1 | 75 |
a=list(str(input()))
if a[2]==a[3] or a[4]==a[5]:
print('Yes')
else:
print('No') | a=list(str(input()))
if a[2]==a[3] and a[4]==a[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 |
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define LOCAL 1
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#define dbg(...) \
cout << #__VA_ARGS__ ": ["; \
fo... | #define fi first
#define se second
#define mp make_pair
#define pb push_back
#define LOCAL 1
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#define dbg(...) \
cout << #__VA_ARGS__ ": ["; \
fo... | [["-", 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 | 131 |
#include <stdio.h>
int main(void) {
int flag = 0;
char str[6];
scanf("%s", str);
if (str[2] == str[3])
flag++;
if (str[4] == str[5])
flag++;
if (flag = 2)
printf("Yes");
if (flag == 0)
printf("No");
return 0;
} | #include <stdio.h>
int main(void) {
int flag = 0;
char str[6];
scanf("%s", str);
if (str[2] == str[3])
flag++;
if (str[4] == str[5])
flag++;
if (flag == 2)
printf("Yes");
if (flag < 2)
printf("No");
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]] | 0 | 88 |
#include <stdio.h>
int main(void) {
char S[6] = {'\0'};
do {
scanf("%s", S);
} while (S[6] != 0 && S[5] == 0);
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] = {'\0'};
do {
scanf("%s", S);
} while (S[6] != 0 && S[5] == 0);
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, 14, 8, 9, 0, 57, 64, 9, 0, 46]] | 0 | 94 |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
char str[6];
scanf("%s", str);
if (str[2] == str[3] && str[4] == str[5])
printf("yes");
else
printf("No");
return 0;
} | #include <stdio.h>
#include <stdlib.h>
int main(void) {
char str[7];
scanf("%s", str);
if (str[2] == str[3] && str[4] == str[5])
printf("Yes");
else
printf("No");
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 66 |
#include <stdio.h>
int main(void) {
char x[7];
scanf("%s", x);
if (x[2] == x[3] && x[4] == x[5])
printf("yes\n");
else
printf("No\n");
return 0;
}
| #include <stdio.h>
int main(void) {
char x[7];
scanf("%s", x);
if (x[2] == x[3] && x[4] == x[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 | 66 |
#include <stdio.h>
int main(void) {
char c[7];
int i;
for (i = 0; i < 7; i++)
scanf("%s", c);
if (c[2] == c[3] && c[4] == c[5])
printf("yes");
else
printf("no");
return 0;
} | #include <stdio.h>
int main(void) {
char c[7];
int i;
for (i = 0; i < 7; i++)
scanf("%s", c);
if (c[2] == c[3] && c[4] == c[5])
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]] | 0 | 80 |
/* Isn't it lovely, all alone? */
/* Heart made of glass, my mind of stone */
/* Tear me to pieces, skin to bone */
/* Hello, welcome home */
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long lon... | /* Isn't it lovely, all alone? */
/* Heart made of glass, my mind of stone */
/* Tear me to pieces, skin to bone */
/* Hello, welcome home */
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long lon... | [["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 127 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long int ll;
typedef unsigned long long int ull;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a, b, c;
string s, t = "No";
ci... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long int ll;
typedef unsigned long long int ull;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a, b, c;
string s, t = "No";
ci... | [["-", 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 | 109 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <set>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string S;
cin >> S;
if (S[2] == S[3]) {
if (S[4] == S[6]) {
cout ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <set>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string S;
cin >> S;
if (S[2] == S[3]) {
if (S[4] == S[5]) {
cout ... | [["-", 15, 339, 51, 16, 12, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 13]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
#define hyperspeed \
ios::sync_with_stdio(false); \
cin.tie(NULL);
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define li long int... | #include <bits/stdc++.h>
using namespace std;
#define hyperspeed \
ios::sync_with_stdio(false); \
cin.tie(NULL);
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define li long int... | [["-", 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 | 130 |
a=list.input()
if a[2]==a[3] and a[4]==a[5]:
print("Yes")
else:
print("No") | a=list(input())
if a[2]==a[3] and a[4]==a[5]:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 42 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String str = scanner.next();
if (str.charAt(2) == str.charAt(3) && str.charAt(4) == str.charAt(5)) {
System.out.println("yes");
} else {
System.out.println(... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String str = scanner.next();
if (str.charAt(2) == str.charAt(3) && str.charAt(4) == str.charAt(5)) {
System.out.println("Yes");
} else {
System.out.println(... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 107 |
#include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define fo(i, n) for (i = 0; i < n; i++)
#define Fo(i, k, n) for (i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define ll unsigned long long
#define si(x) scanf("%d", &x)
#define sl(x) scanf("%lld", &x)
#define ss(s) scanf("%s", s)
#def... | #include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define fo(i, n) for (i = 0; i < n; i++)
#define Fo(i, k, n) for (i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define ll unsigned long long
#define si(x) scanf("%d", &x)
#define sl(x) scanf("%lld", &x)
#define ss(s) scanf("%s", s)
#def... | [["-", 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 | 359 |
a = str(input().split())
s = list(a)
print(s)
if s[4] == s[5] and s[7] == s[6]:
print("Yes")
else :
print("No") | a = str(input().split())
s = list(a)
if s[4] == s[5] and s[7] == s[6]:
print("Yes")
else :
print("No") | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 57 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner tan = new Scanner(System.in);
int i = 0;
String st = tan.next();
char[] c = new char[st.length()];
for (char ch : st.toCharArray()) {
c[i] = ch;
i++;
}
if (c[2] == c[3] || c[4] == c[... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner tan = new Scanner(System.in);
int i = 0;
String st = tan.next();
char[] c = new char[st.length()];
for (char ch : st.toCharArray()) {
c[i] = ch;
i++;
}
if (c[2] == c[3] && c[4] == c[... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]] | 3 | 132 |
str_in = input()
ans = "No"
if(str_in[2] == str_in[3] and str_in[2] == str_in[3]):
ans = "Yes"
print(ans) | str_in = input()
ans = "No"
if(str_in[2] == str_in[3] and str_in[4] == str_in[5]):
ans = "Yes"
print(ans) | [["-", 15, 23, 0, 679, 12, 666, 0, 206, 206, 612], ["+", 15, 23, 0, 679, 12, 666, 0, 206, 206, 612]] | 5 | 42 |
#include <string.h>
int main(void) {
char s[100];
gets(s);
int x;
x = strlen(s);
if (x != 6) {
printf("NO");
return 0;
} else if (s[0] != s[1] && s[2] == s[3] && s[4] == s[5]) {
printf("YES");
return 0;
} else
printf("NO");
} | #include <string.h>
int main(void) {
char s[100];
gets(s);
int x;
x = strlen(s);
if (x != 6) {
printf("No");
return 0;
} else if (s[0] != s[1] && s[2] == s[3] && s[4] == s[5]) {
printf("Yes");
return 0;
} else
printf("No");
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 101 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define xrep(i, a, b) for (int i = int(a); i < int(b); ++i)
int main() {
string S;
cin >> S;
if (S[3 - 1] == S[4 - 1] && S[5 - 1] && S[6 - 1])
cout << "Yes" << endl;
else
cout << "No" << endl... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define xrep(i, a, b) for (int i = int(a); i < int(b); ++i)
int main() {
string S;
cin >> S;
if (S[3 - 1] == S[4 - 1] && S[5 - 1] == S[6 - 1])
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 | 87 |
#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, 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 | 71 |
# A - Coffee
S = int(input())
if S[2]==S[3] and S[4]==S[5]:
print('Yes')
else:
print('No') | # A - Coffee
S = input()
if S[2]==S[3] and S[4]==S[5]:
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 44 |
S = input()
if S[2] == S[3] and S[4] and S[5]:
print("Yes")
else:
print("No")
|
S = input()
if S[2] == S[3] and S[4] == S[5]:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60]] | 5 | 40 |
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");
}
}
} | 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");
}
}
}
| [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]] | 3 | 101 |
#include <stdio.h>
int main(void) {
char s[7];
scanf("%s", &s);
if (s[2] == s[3] && s[4] == s[5])
printf("Yes");
else
printf("Mo");
return 0;
} | #include <stdio.h>
int main(void) {
char s[7];
scanf("%s", &s);
if (s[2] == s[3] && s[4] == s[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 | 65 |
s = input()
if s[-1] == s[-2]:
if s[-3] == s[-4]:
print("Yes")
else:
print("No") | s = input()
if s[-1] == s[-2]:
if s[-3] == s[-4]:
print("Yes")
exit()
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 | 45 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
if (s.substring(2, 3).equals(s.substring(3, 4)) &&
s.substring(4, 5).equals(s.substring(5, 6)))
System.out.println("Yes");
else
System.out... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
if (s.substring(2, 3).equals(s.substring(3, 4)) &&
s.substring(4, 5).equals(s.substring(5, 6)))
System.out.println("Yes");
else
System.out... | [["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 111 |
s=input();print('YNeos'[s[2]!=s[3] and s[4]!=s[5]::2]) | s=input();print('YNeos'[s[2]!=s[3] or s[4]!=s[5]::2]) | [["-", 3, 4, 0, 206, 206, 663, 0, 679, 17, 355], ["+", 3, 4, 0, 206, 206, 663, 0, 679, 17, 354]] | 5 | 36 |
s = input()
if s[2] == s[3] & s[4] == s[5]:
print("Yes")
else:
print("No") | s = input()
if (s[2] == s[3]) & (s[4] == s[5]):
print("Yes")
else:
print("No") | [["+", 0, 656, 0, 57, 15, 657, 31, 23, 0, 24], ["+", 0, 656, 0, 57, 15, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 57, 15, 657, 12, 23, 0, 24], ["+", 0, 656, 0, 57, 15, 657, 12, 23, 0, 25]] | 5 | 40 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan = new Scanner(System.in);
String s = scan.next();
if (s.charAt(2) == s.charAt(3) && s.charAt(4) == s.charAt(5)) {
System.out.println("YES");
} else {
System.... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String s = scan.next();
if (s.charAt(2) == s.charAt(3) && s.charAt(4) == s.charAt(5)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 102 |
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 = list(input())
if c == d and e == f:
print('Yes')
else:
print('No') | [["+", 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, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]] | 5 | 42 |
#include <iostream>
using namespace std;
int main() {
string s, ans;
ans = "No";
cin >> s;
if (s[3] == s[4] && s[4] == s[5]) {
ans = "Yes";
}
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
string s, ans;
ans = "No";
cin >> s;
if (s[2] == s[3] && s[4] == s[5]) {
ans = "Yes";
}
cout << ans << endl;
} | [["-", 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 | 63 |
#include <iostream>
#include <string>
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 <iostream>
#include <string>
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;
}
} | [["-", 15, 339, 51, 16, 12, 23, 0, 42, 0, 32], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 60]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
string S;
cin >> S;
if ((S[2] != S[3]) || (S[2] != S[3]))
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string S;
cin >> S;
if ((S[2] != S[3]) || (S[4] != S[5]))
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | [["-", 12, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 12, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["-", 12, 23, 0, 16, 12, 69, 341, 342, 0, 13], ["+", 12, 23, 0, 16, 12, 69, 341, 342, 0, 13]] | 1 | 66 |
#include <bits/stdc++.h>
using namespace std;
#define _USE_MATH_DEFINES
#include <cmath>
// long long MOD=1000000007;
vector<int> t(4 * 100001);
vector<int> t1(4 * 100001);
long long binary_exp(long long a, long long b) {
long long ans = 1;
while (b > 0) {
if (b & 1) {
ans = (ans * a);
}
a = (a *... | #include <bits/stdc++.h>
using namespace std;
#define _USE_MATH_DEFINES
#include <cmath>
// long long MOD=1000000007;
vector<int> t(4 * 100001);
vector<int> t1(4 * 100001);
long long binary_exp(long long a, long long b) {
long long ans = 1;
while (b > 0) {
if (b & 1) {
ans = (ans * a);
}
a = (a *... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 529 |
s = str(input())
if (s[2] == s[3]) and (s[4] == s[5]):
print('yes')
else:
print('no') | s = str(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, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 47 |
#include <math.h>
#include <stdio.h>
#include <string.h>
#define pr(x) printf("%s %lld\n", #x, x)
int main() {
// freopen("in.txt", "w", stdout);
char string[10];
scanf("%s", string);
if (string[2] == string[3] && string[4] == string[5])
printf("YES\n");
else
printf("NO\n");
} | #include <math.h>
#include <stdio.h>
#include <string.h>
#define pr(x) printf("%s %lld\n", #x, x)
int main() {
// freopen("in.txt", "w", stdout);
char string[10];
scanf("%s", string);
if (string[2] == string[3] && string[4] == string[5])
printf("Yes\n");
else
printf("No\n");
} | [["-", 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 | 73 |
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
map<int, int> ct;
map<int, int> ct2;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<pair<int, int>> vpii;
typedef pair<int, int> pii;
typedef long long ll;
type... | #include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
map<int, int> ct;
map<int, int> ct2;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<pair<int, int>> vpii;
typedef pair<int, int> pii;
typedef long long ll;
type... | [["-", 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, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 1 | 303 |
s=input()
if s[-4]==s[-3] or s[-2]==s[-1]:
print('Yes')
else:
print('No')
| s=input()
if s[-4]==s[-3] and s[-2]==s[-1]:
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 | 44 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a;
cin >> a;
int ans = 0;
if (a == 2) {
cout << 0;
return 0;
}
for (int i = 2; i <= sqrt(a); i++) {
if (a % i == 0) {
int t1 = i;
int t2 = ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a;
cin >> a;
int ans = 0;
if (a == 2) {
cout << 1;
return 0;
}
for (int i = 2; i <= sqrt(a); i++) {
if (a % i == 0) {
int t1 = i;
int t2 = ... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13]] | 1 | 273 |
/*
ID: Sho10
LANG: C++
*/
#include <bits/stdc++.h> //Andrei Alexandru a.k.a Sho10
#define ll long long int
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#define all(a) (a).begin(), (a).end()
#define sz size
#define f first
#define s second
#define pb push_back
#define er erase
#define in insert
#define mp ma... | /*
ID: Sho10
LANG: C++
*/
#include <bits/stdc++.h> //Andrei Alexandru a.k.a Sho10
#define ll long long int
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#define all(a) (a).begin(), (a).end()
#define sz size
#define f first
#define s second
#define pb push_back
#define er erase
#define in insert
#define mp ma... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 263 |
import sys
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip() # ignore trailing spaces
# 12
# 12 6 3 1
# 12 4 1
def check(d, n):
if d == 1: return False
while n % d == 0:
n //= d
return n % d == 1
n = ni()
ans =... | import sys
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip() # ignore trailing spaces
# 12
# 12 6 3 1
# 12 4 1
def check(d, n):
if d == 1: return False
while n % d == 0:
n //= d
return n % d == 1
n = ni()
ans =... | [["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 33], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 12, 612]] | 5 | 210 |
#include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define pb push_back
#define pii pair<int, int>
#define F first
#define S second
#define int long long int
#define sync \
ios_base::sync_with_stdio(false); ... | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define pb push_back
#define pii pair<int, int>
#define F first
#define S second
#define int long long int
#define sync \
ios_base::sync_with_stdio(false); ... | [["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 231 |
#include <bits/stdc++.h>
int main() {
using namespace std;
unsigned long N;
cin >> N;
unsigned long M{N};
vector<unsigned long> facs{N};
for (unsigned long i{2}; i * i <= N; ++i)
if (N % i == 0) {
facs.push_back(i);
if (i * i != N)
facs.push_back(N / i);
}
const auto &check = ... | #include <bits/stdc++.h>
int main() {
using namespace std;
unsigned long N;
cin >> N;
unsigned long M{N};
vector<unsigned long> facs{N};
for (unsigned long i{2}; i * i <= N; ++i)
if (N % i == 0) {
facs.push_back(i);
if (i * i != N)
facs.push_back(N / i);
}
const auto &check = ... | [["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 0, 43, 49, 50, 51, 83, 0, 16, 31, 22], ["+", 0, 43, 49, 50, 51, 83, 0, 16, 17, 47], ["+", 0, 43, 49, 50, 51, 83, 0, 16, 12, 13]] | 1 | 211 |
#include <bits/stdc++.h>
using namespace std;
template <typename T> void read(T &t) {
t = 0;
char ch = getchar();
int f = 1;
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
do {
(t *= 10) += ch - '0';
ch = getchar();
} while ('0' <= ch && ch <= '9');
t *= f;... | #include <bits/stdc++.h>
using namespace std;
template <typename T> void read(T &t) {
t = 0;
char ch = getchar();
int f = 1;
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
do {
(t *= 10) += ch - '0';
ch = getchar();
} while ('0' <= ch && ch <= '9');
t *= f;... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 316 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
// for(int i=0;s[i]!='/0';i++)
//{
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";
} | [["-", 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 | 62 |
#include <stdio.h>
int main() {
char S[5];
scanf("%s", &S);
if (S[2] == S[3] && S[4] == S[5]) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
char S[10];
scanf("%s", &S);
if (S[2] == S[3] && S[4] == S[5]) {
printf("Yes");
} else {
printf("No");
}
} | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]] | 1 | 70 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.