problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02547 | #include <bits/stdc++.h>
#define taskname ""
#define int long long
using namespace std;
main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
if (ifstream("test.inp")) {
freopen("test.inp", "r", stdin);
#ifdef CHECKING
freopen(taskname ".out", "w", stdout);
#else
freopen("... | #include <bits/stdc++.h>
#define taskname ""
#define int long long
using namespace std;
main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
if (ifstream("test.inp")) {
freopen("test.inp", "r", stdin);
#ifdef CHECKING
freopen(taskname ".out", "w", stdout);
#else
freopen("... | null | 244,316 | 244,317 | u388159167 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b, m, i, flag = 0;
int arr[100] = {-1};
cin >> n;
m = n;
i = -1;
while (m--) {
cin >> a >> b;
if (a == b) {
i++;
arr[i] = n - m;
}
}
for (m = 0; m <= i - 2; m++) {
if (arr[m + 1] == arr[m] + 1 && arr[m + 2] ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b, m, i, flag = 0;
int arr[100] = {-1};
cin >> n;
m = n;
i = -1;
while (m--) {
cin >> a >> b;
if (a == b) {
i++;
arr[i] = n - m;
}
}
for (m = 0; m <= i - 2; m++) {
if (arr[m + 1] == arr[m] + 1 && arr[m + 2] ... | null | 244,016 | 244,017 | u272416901 | cpp |
p02547 | #include <bits/stdc++.h>
#define REP(i, n) for (int i{0}; i < n; ++i)
#define REP2(i, s, n) for (int i{s}; i < n; ++i)
#define DREP(i, n) for (int i{n - 1}; i <= 0; --i)
#define repa(arr) for (auto &e : arr)
#define DEB(x) (std::cerr << __LINE__ << ": x = " << x << std::endl)
#define DEBa(x) repa(x) DEB(e)
using names... | #include <bits/stdc++.h>
#define REP(i, n) for (int i{0}; i < n; ++i)
#define REP2(i, s, n) for (int i{s}; i < n; ++i)
#define DREP(i, n) for (int i{n - 1}; i <= 0; --i)
#define repa(arr) for (auto &e : arr)
#define DEB(x) (std::cerr << __LINE__ << ": x = " << x << std::endl)
#define DEBa(x) repa(x) DEB(e)
using names... | null | 244,038 | 244,039 | u704811081 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int t = 0, n, a, b, s = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a >> b;
if (a == b)
s++;
else {
if (s >= 3)
t = 1;
s = 0;
}
}
if (t)
cout << "Yes\n";
else
cout << "No\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int t = 0, n, a, b, s = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a >> b;
if (a == b)
s++;
else {
if (s >= 3)
t = 1;
s = 0;
}
}
if (t || s >= 3)
cout << "Yes\n";
else
cout << "No\n";
} | null | 244,068 | 244,069 | u486115082 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
bool a1 = false;
bool a2 = false;
bool a3 = false;
bool a = false;
string ans = "No";
int N;
cin >> N;
int D[2][N];
for (int i = 0; i < N; i++) {
cin >> D[0][i] >> D[1][i];
}
int i = 0;
// N回繰り返す
while (i < N) {
/*
//3回... | #include <bits/stdc++.h>
using namespace std;
int main() {
bool a1 = false;
bool a2 = false;
bool a3 = false;
bool a = false;
string ans = "No";
int N;
cin >> N;
int D[2][N];
for (int i = 0; i < N; i++) {
cin >> D[0][i] >> D[1][i];
}
int i = 0;
// N回繰り返す
while (i < N) {
/*
//3回... | null | 244,074 | 244,075 | u076303440 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
bool a1 = false;
bool a2 = false;
bool a3 = false;
bool a = false;
string ans = "No";
int N;
cin >> N;
int D[2][N];
for (int i = 0; i < N; i++) {
cin >> D[0][i] >> D[1][i];
}
int i = 0;
while (i < N) {
//ぞろ目なら
if (D[0][i] ... | #include <bits/stdc++.h>
using namespace std;
int main() {
bool a1 = false;
bool a2 = false;
bool a3 = false;
bool a = false;
string ans = "No";
int N;
cin >> N;
int D[2][N];
for (int i = 0; i < N; i++) {
cin >> D[0][i] >> D[1][i];
}
int i = 0;
// N回繰り返す
while (i < N) {
/*
//3回... | null | 244,076 | 244,075 | u076303440 | cpp |
p02547 | #include <bits/stdc++.h>
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(x) x.begin(), x.end()
using namespace std;
int main() {
cin.tie(0);
ios_base::sync_with_stdio(false);
int n;
cin >> n;
int d[n][2];
rep(i, n) { cin >> d[i][0] >> d[i][1]; }
rep(i, n - 2) {
... | #include <bits/stdc++.h>
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(x) x.begin(), x.end()
using namespace std;
int main() {
cin.tie(0);
ios_base::sync_with_stdio(false);
int n;
cin >> n;
int d[n][2];
rep(i, n) { cin >> d[i][0] >> d[i][1]; }
rep(i, n - 2) {
... | null | 244,093 | 244,094 | u338931519 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<vector<int>> data(N, vector<int>(2));
// 入力 (2重ループを用いる)
for (int i = 0; i < N; i++) {
for (int j = 0; j < 2; j++) {
cin >> data.at(i).at(j);
}
}
for (int i = 0; i < N - 2; i++) {
if (data.at(i).at(0) == d... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<vector<int>> data(N, vector<int>(2));
for (int i = 0; i < N; i++) {
for (int j = 0; j < 2; j++) {
cin >> data.at(i).at(j);
}
}
for (int i = 0; i < N - 2; i++) {
if (data.at(i).at(0) == data.at(i).at(1) &&
... | null | 244,097 | 244,098 | u529991591 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b, count = 0;
bool flag = false;
int index = 0;
cin >> n;
vector<int> v(n, 0);
while (n--) {
cin >> a >> b;
if (a == b) {
v[index++] = 1;
}
}
for (int i = 0; i < (int)v.size(); i++) {
// cout<<"value of i is ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b, count = 0;
bool flag = false;
int index = 0;
cin >> n;
vector<int> v(n, 0);
while (n--) {
cin >> a >> b;
if (a == b) {
v[index] = 1;
}
index++;
}
// for(auto i : v)
// cout<<i<<' ';
// cout<<endl;... | null | 244,103 | 244,104 | u925519865 | cpp |
p02547 | #include <bits/stdc++.h>
#define int long long
#define endl '\n'
#define mod 1000000007
#define pb push_back
#define fi first
#define se second
#define ii pair<int, int>
#define vi vector<int>
#define vii vector<ii>
#define fastIO \
ios_base::sync_with_... | #include <bits/stdc++.h>
#define int long long
#define endl '\n'
#define mod 1000000007
#define pb push_back
#define fi first
#define se second
#define ii pair<int, int>
#define vi vector<int>
#define vii vector<ii>
#define fastIO \
ios_base::sync_with_... | null | 243,965 | 243,966 | u150510964 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int arr[n][2];
int i = 0;
for (i = 0; i < n; i++) {
cin >> arr[i][0];
cin >> arr[i][1];
}
i = 0;
while (i < n - 2) {
if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] &&
arr[i + 2][0] == arr[i + 2... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int arr[n][2];
int i = 0;
for (i = 0; i < n; i++) {
cin >> arr[i][0];
cin >> arr[i][1];
}
i = 0;
while (i < n - 2) {
if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] &&
arr[i + 2][0] == arr[i + 2... | null | 244,113 | 244,114 | u168708651 | cpp |
p02547 | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int N;
cin >> N;
int inarow = 0;
for (int i = 0; i < N; i++) {
int x, y;
cin >> x >> y;
if (x == y)
inarow++;
else
inarow = 0;
if (inarow == 3) {
cout << "YES\n";
retur... | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int N;
cin >> N;
int inarow = 0;
for (int i = 0; i < N; i++) {
int x, y;
cin >> x >> y;
if (x == y)
inarow++;
else
inarow = 0;
if (inarow == 3) {
cout << "Yes\n";
retur... | null | 244,122 | 244,123 | u625087416 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#define sz(x) ((int)(x).size())
typedef vector<int> vi;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#define sz(x) ((int)(x).size())
typedef vector<int> vi;
... | null | 244,126 | 244,127 | u237593839 | cpp |
p02547 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int arr[n][2];
for (int i = 0; i < n; i++) {
for (int j = 0; j < 2; j++) {
cin >> arr[i][j];
}
}
bool flag = false;
for (int i = 0; i <= n - 3; i++) {
int count = 0;
for (int j = i; j < i... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int arr[n][2];
for (int i = 0; i < n; i++) {
for (int j = 0; j < 2; j++) {
cin >> arr[i][j];
}
}
bool flag = false;
for (int i = 0; i <= n - 3; i++) {
int count = 0;
for (int j = i; j < i... | null | 244,136 | 244,137 | u488693132 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, flag = 0;
cin >> n;
int a[n], b[n];
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
}
for (int i = 0; i < n - 2; i++) {
if (a[i] == b[i]) {
if (a[i + 1] == b[i + 1] && a[i... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, flag = 0;
cin >> n;
int a[n], b[n];
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
}
for (int i = 0; i < n - 2; i++) {
if (a[i] == b[i]) {
if (a[i + 1] == b[i + 1] && a[i... | null | 244,648 | 244,649 | u498514574 | cpp |
p02547 | #include <bits/stdc++.h>
#define int long long
using namespace std;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin >> n;
int arr[n][2];
for (int i = 0; i < n; i++) {
for (int j = 0; j < 2; j++) {
cin >> arr[i][j];
}
}
int flag = 0;
for (in... | #include <bits/stdc++.h>
#define int long long
using namespace std;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin >> n;
int arr[n][2];
for (int i = 0; i < n; i++) {
for (int j = 0; j < 2; j++) {
cin >> arr[i][j];
}
}
int flag = 0;
for (in... | null | 244,672 | 244,673 | u311803789 | cpp |
p02547 | #include <bits/stdc++.h>
#define se second
#define sz(x) (int)(x.size())
#define ll long long
#define rep(i, x, y) for (int i = x; i <= y; ++i)
#define repr(i, x, y) for (int i = x; i >= y; --i)
#define pb push_back
#define mp make_pair
#define fi first
#define ull unsigned ll
#define pi 3.14159265358979
using names... | #include <bits/stdc++.h>
#define se second
#define sz(x) (int)(x.size())
#define ll long long
#define rep(i, x, y) for (int i = x; i <= y; ++i)
#define repr(i, x, y) for (int i = x; i >= y; --i)
#define pb push_back
#define mp make_pair
#define fi first
#define ull unsigned ll
#define pi 3.14159265358979
using names... | null | 244,674 | 244,675 | u822266767 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
pair<int, int> dp[n];
for (int i = 0; i < n; i++) {
cin >> dp[i].first >> dp[i].second;
}
int k = 0;
for (int i = 0; i < n - 2; i++) {
if (dp[i].first == dp[i].second && dp[i + 1].first == dp[i + 1].second &&
dp[i... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
pair<int, int> dp[n];
for (int i = 0; i < n; i++) {
cin >> dp[i].first >> dp[i].second;
}
int k = 0;
for (int i = 0; i < n - 2; i++) {
if (dp[i].first == dp[i].second && dp[i + 1].first == dp[i + 1].second &&
dp[i... | null | 244,676 | 244,677 | u771595024 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
pair<int, int> dp[n];
for (int i = 0; i < n; i++) {
cin >> dp[i].first >> dp[i].second;
}
int k = 0;
for (int i = 0; i < n - 3; i++) {
if (dp[i].first == dp[i].second && dp[i + 1].first == dp[i + 1].second &&
dp[i... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
pair<int, int> dp[n];
for (int i = 0; i < n; i++) {
cin >> dp[i].first >> dp[i].second;
}
int k = 0;
for (int i = 0; i < n - 2; i++) {
if (dp[i].first == dp[i].second && dp[i + 1].first == dp[i + 1].second &&
dp[i... | null | 244,678 | 244,677 | u771595024 | cpp |
p02547 | /******************************************************************************
بسم الله الرحمن الرحيم
Author: Mst: Mhamuda Khatun
RUCSE27
*******************************************************************************/
#include <bits/stdc++.h... | /******************************************************************************
بسم الله الرحمن الرحيم
Author: Mst: Mhamuda Khatun
RUCSE27
*******************************************************************************/
#include <bits/stdc++.h... | null | 244,697 | 244,698 | u714676032 | cpp |
p02547 | #include <iostream>
using namespace std;
int main(void) {
int N;
cin >> N;
int first[N];
int second[N];
for (int i = 0; i < N; i++) {
cin >> first[i] >> second[i];
}
int count = 0;
for (int i = 0; i < N - 2; i++) {
int c = 0;
for (int j = i; j < i + 3; j++) {
if (first[i + j] == secon... | #include <iostream>
using namespace std;
int main(void) {
int N;
cin >> N;
int first[N];
int second[N];
for (int i = 0; i < N; i++) {
cin >> first[i] >> second[i];
}
int count = 0;
for (int i = 0; i < N - 2; i++) {
int c = 0;
for (int j = 0; j < 3; j++) {
if (first[i + j] == second[i ... | null | 244,715 | 244,716 | u497660899 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, count = 0, flag = 0;
cin >> n;
while (n--) {
int q, r;
cin >> q >> r;
if (q == r)
count++;
else
count = 0;
if (count >= 3) {
cout << "YES" << endl;
flag++;
break;
}
}
if (flag == 0)
co... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, count = 0, flag = 0;
cin >> n;
while (n--) {
int q, r;
cin >> q >> r;
if (q == r)
count++;
else
count = 0;
if (count >= 3) {
cout << "Yes" << endl;
flag++;
break;
}
}
if (flag == 0)
co... | null | 244,730 | 244,731 | u390591795 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<vector<int>> s(n, vector<int>(2));
int ans = 0;
for (int i = 0; i < n; i++) {
for (int f = 0; f < 2; f++) {
cin >> s.at(i).at(f);
}
}
for (int i = 0; i < n; i++) {
if (s.at(i).at(0) == s.at(i).at(1))
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<vector<int>> s(n, vector<int>(2));
int ans = 0;
for (int i = 0; i < n; i++) {
for (int f = 0; f < 2; f++) {
cin >> s.at(i).at(f);
}
}
for (int i = 0; i < n; i++) {
if (s.at(i).at(0) == s.at(i).at(1))
... | null | 244,732 | 244,733 | u076273565 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define read(x) freopen(x, "r", stdin);
#define write(x) freopen(x, "w", stdout);
//#define xihaad
int main() {
#ifdef xihaad
read("input.txt");
// write("output.txt");
#endif
int n;
cin >> n;
int cnt = 0;
for (int i = 0; i < n; i++) {
int l, p;
cin >>... | #include <bits/stdc++.h>
using namespace std;
#define read(x) freopen(x, "r", stdin);
#define write(x) freopen(x, "w", stdout);
//#define xihaad
int main() {
#ifdef xihaad
read("input.txt");
// write("output.txt");
#endif
int n;
cin >> n;
int cnt = 0;
for (int i = 0; i < n; i++) {
int l, p;
cin >>... | null | 244,734 | 244,735 | u683042356 | cpp |
p02547 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
void solve() {
int n;
cin >> n;
vector<pair<int, int>> a;
for (int i = 0; i < n; ++i) {
int x, y;
cin >> x >> y;
a.push_back(make_pair(x, y));
}
int f = 0;
for (int i = 0; i < n - 4; ++i) {
if ((a[i].first == a[i].se... |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
void solve() {
int n;
cin >> n;
vector<pair<int, int>> a;
for (int i = 0; i < n; ++i) {
int x, y;
cin >> x >> y;
a.push_back(make_pair(x, y));
}
int f = 0;
for (int i = 0; i < n - 2; ++i) {
if ((a[i].first == a[i].se... | null | 244,744 | 244,745 | u185088224 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
bool result = false;
char in1, in2;
char prev1, prev2;
char preprev1, preprev2;
cin >> prev1 >> prev2;
cin >> in1 >> in2;
for (int i = 1; i < N; i++) {
preprev1 = prev1;
preprev2 = prev2;
prev1 = in1;
prev2 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
bool result = false;
char in1, in2;
char prev1, prev2;
char preprev1, preprev2;
cin >> prev1 >> prev2;
cin >> in1 >> in2;
for (int i = 2; i < N; i++) {
preprev1 = prev1;
preprev2 = prev2;
prev1 = in1;
prev2 ... | null | 244,746 | 244,747 | u791053208 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using f64 = double;
#define FOR(i, s, n) for (size_t i = (s); i < (size_t)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v) (v).begin(), (v).end()
template <typename T, typename U> inline bool chmax(T &a, U b) {
return a < b ? (a = b, true)... | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using f64 = double;
#define FOR(i, s, n) for (size_t i = (s); i < (size_t)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v) (v).begin(), (v).end()
template <typename T, typename U> inline bool chmax(T &a, U b) {
return a < b ? (a = b, true)... | null | 244,748 | 244,749 | u660902548 | cpp |
p02547 | #include <bits/stdc++.h>
#define ll long long int
#define endl '\n'
using namespace std;
int main() {
int t, ans = 0, ma = 0;
cin >> t;
while (t--) {
int a, b;
cin >> a >> b;
if (a == b)
ans++;
else
ans = 0;
ma = max(ans, ma);
}
// cout<<ma;
if (ma > 2)
cout << "Y... | #include <bits/stdc++.h>
#define ll long long int
#define endl '\n'
using namespace std;
int main() {
int t, ans = 0, ma = 0;
cin >> t;
while (t--) {
int a, b;
cin >> a >> b;
if (a == b)
ans++;
else
ans = 0;
ma = max(ans, ma);
}
// cout<<ma;
if (ma > 2)
cout << "Y... | null | 244,756 | 244,757 | u216908060 | cpp |
p02547 | #include <bits/stdc++.h>
#define ll long long int
#define endl '\n'
using namespace std;
int main() {
int t, ans = 0, flag = 1, ma = 0;
cin >> t;
while (t--) {
int a, b;
cin >> a >> b;
if (a == b)
ans++;
else
ans = 0;
ma = max(ans, ma);
}
if (ma > 2)
cout << "YES" <<... | #include <bits/stdc++.h>
#define ll long long int
#define endl '\n'
using namespace std;
int main() {
int t, ans = 0, ma = 0;
cin >> t;
while (t--) {
int a, b;
cin >> a >> b;
if (a == b)
ans++;
else
ans = 0;
ma = max(ans, ma);
}
// cout<<ma;
if (ma > 2)
cout << "Y... | null | 244,758 | 244,757 | u216908060 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
int cpt = 0, d = 0;
while (t--) {
int a, b;
cin >> a >> b;
if (a == b) {
d++;
if (d == 3)
cpt = 3;
} else
d = 0;
}
if (cpt == 3)
cout << "YES" << endl;
else
cout << "NO" << endl;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
int cpt = 0, d = 0;
while (t--) {
int a, b;
cin >> a >> b;
if (a == b) {
d++;
if (d == 3)
cpt = 3;
} else
d = 0;
}
if (cpt == 3)
cout << "Yes" << endl;
else
cout << "No" << endl;
... | null | 244,768 | 244,769 | u215609005 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a[n], b[n];
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
}
for (int i = 0; i < n; i++) {
if (a[i] == b[i] && a[i + 1] == b[i + 1] && a[i + 2] == b[i + 2]) {
cout << "YES" << endl;
return 0;
}
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a[n], b[n];
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
}
for (int i = 0; i < n - 2; i++) {
if (a[i] == b[i] && a[i + 1] == b[i + 1] && a[i + 2] == b[i + 2]) {
cout << "Yes" << endl;
return 0;
}... | null | 244,895 | 244,896 | u717848352 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int count = 0, flag = 1;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if (flag == 0)
if (x == y) {
count++;
} else {
count = 0;
}
if (count == 3) {
flag = 1;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int count = 0, flag = 0;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if (flag == 0)
if (x == y) {
count++;
} else {
count = 0;
}
if (count == 3) {
flag = 1;
}
... | null | 244,904 | 244,905 | u394340131 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int i, n, k = 0, count = 0;
cin >> n;
vector<int> v(n), c(n);
for (i = 0; i < n; i++) {
int a, b;
cin >> a >> b;
v[i] = a;
c[i] = b;
}
for (i = 0; i < n; i++) {
if (v[i] == c[i]) {
k++;
if (k = 3) {
cout << "... | #include <bits/stdc++.h>
using namespace std;
int main() {
int i, n, k = 0, count = 0;
cin >> n;
vector<int> v(n), c(n);
for (i = 0; i < n; i++) {
int a, b;
cin >> a >> b;
v[i] = a;
c[i] = b;
}
for (i = 0; i < n; i++) {
if (v[i] == c[i]) {
k++;
if (k == 3) {
cout << ... | null | 244,922 | 244,923 | u168075961 | cpp |
p02547 | #include <iostream>
using namespace ::std;
int main() {
int n, a, a1, che, b, last, tes;
b = 0;
last = 1;
tes = 0;
che = 0;
cin >> n;
for (b = 0; b < n; b++) {
cin >> a;
cin >> a1;
if ((a == a1) && (last == 0)) {
last = 1;
} else if ((a == a1) && (last == 1)) {
che++;
} el... | #include <iostream>
using namespace ::std;
int main() {
int n, a, a1, che, b, last, tes;
b = 0;
last = 1;
tes = 0;
che = 0;
cin >> n;
for (b = 0; b < n; b++) {
cin >> a;
cin >> a1;
if ((a == a1) && (last == 0)) {
last = 1;
che = 1;
} else if ((a == a1) && (last == 1)) {
... | null | 244,933 | 244,934 | u947022451 | cpp |
p02547 | #include <cmath>
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
int main() {
int N, D[101][2];
cin >> N;
int flag = 0, ans = 0;
for (int i = 0; i < N; i++) {
cin >> D[i][0] >> D[i][1];
}
for (int i = 0; i < N - 2; i++) {
if (D[i][0] != D[i][1]) {
flag = 1;
... | #include <cmath>
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
int main() {
int N, D[101][2];
cin >> N;
int flag = 0, ans = 0;
for (int i = 0; i < N; i++) {
cin >> D[i][0] >> D[i][1];
}
for (int i = 0; i < N; i++) {
if (D[i][0] != D[i][1]) {
flag = 0;
} ... | null | 244,937 | 244,938 | u072694961 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
template <typename RandomIt> void ruffleSort(RandomIt first, RandomIt last) {
random_device rd;
mt19937 g(rd());
shuffle(first, last, g);
sort(first, last);
}
template <typename Container> auto outputContainer(const Contai... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
template <typename RandomIt> void ruffleSort(RandomIt first, RandomIt last) {
random_device rd;
mt19937 g(rd());
shuffle(first, last, g);
sort(first, last);
}
template <typename Container> auto outputContainer(const Contai... | null | 244,956 | 244,957 | u774787127 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
template <typename RandomIt> void ruffleSort(RandomIt first, RandomIt last) {
random_device rd;
mt19937 g(rd());
shuffle(first, last, g);
sort(first, last);
}
template <typename Container> auto outputContainer(const Contai... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
template <typename RandomIt> void ruffleSort(RandomIt first, RandomIt last) {
random_device rd;
mt19937 g(rd());
shuffle(first, last, g);
sort(first, last);
}
template <typename Container> auto outputContainer(const Contai... | null | 244,958 | 244,957 | u774787127 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define faster ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
#define ll long long
#define FO(n) for (ll i = 0; i < n; i++)
#define endl "\n"
const long long int M = 10e9 + 7;
void solve() {
int n;
cin >> n;
vector<pair<int, int>> v;
for (int i = 0;... | #include <bits/stdc++.h>
using namespace std;
#define faster ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
#define ll long long
#define FO(n) for (ll i = 0; i < n; i++)
#define endl "\n"
const long long int M = 10e9 + 7;
void solve() {
int n;
cin >> n;
vector<pair<int, int>> v;
for (int i = 0;... | null | 244,969 | 244,970 | u363393619 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
ll power(ll x, unsigned ll y, ll p) {
ll res = 1; // Initialize result
x = x % p; // Update x if it is more than or
// equal to p
if (x == 0)
return 0; // In case x is divisible by p;
while (y > 0) {
// If y is odd, m... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
ll power(ll x, unsigned ll y, ll p) {
ll res = 1; // Initialize result
x = x % p; // Update x if it is more than or
// equal to p
if (x == 0)
return 0; // In case x is divisible by p;
while (y > 0) {
// If y is odd, m... | null | 244,986 | 244,987 | u098592499 | cpp |
p02547 | #include <iostream>
#include <string>
using namespace std;
int a[105][4];
int b[105];
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a[i][0] >> a[i][1];
if (a[i][0] == a[i][1]) {
b[i] = 1;
}
}
int flag = 0;
for (int i = 0; i + 2 < n; i++) {
if (b[i] == 1 && b[i + 1]... | #include <iostream>
#include <string>
using namespace std;
int a[105][4];
int b[105];
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a[i][0] >> a[i][1];
if (a[i][0] == a[i][1]) {
b[i] = 1;
}
}
int flag = 0;
for (int i = 0; i + 2 < n; i++) {
if (b[i] == 1 && b[i + 1]... | null | 244,990 | 244,991 | u402696200 | cpp |
p02547 | /*====================================
Auther: Shyam Makwana
Problem: abc179_b.cpp
====================================*/
#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define fastio \
ios_base::sync_with_stdio(false); ... | /*====================================
Auther: Shyam Makwana
Problem: abc179_b.cpp
====================================*/
#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define fastio \
ios_base::sync_with_stdio(false); ... | null | 244,793 | 244,794 | u122847584 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, y, c = 0, k = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> x >> y;
if (x == y) {
c++;
if (c >= 3)
k = 1;
}
if (x != y)
c = 0;
}
if (k == 1)
cout << "YES" << endl;
else
cout << "NO" <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, y, c = 0, k = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> x >> y;
if (x == y) {
c++;
if (c >= 3)
k = 1;
}
if (x != y)
c = 0;
}
if (k == 1)
cout << "Yes" << endl;
else
cout << "No" <<... | null | 244,801 | 244,802 | u575734954 | cpp |
p02547 | #include <bits/stdc++.h>
#define ll long long int
#define vi vector<int>
#define vl vector<ll>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
#define ll long long int
#define vi vector<int>
#define vl vector<ll>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | null | 244,811 | 244,812 | u937381942 | cpp |
p02547 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int a, b, c = 0;
bool temp = false;
for (int i = 0; i < n; i++) {
cin >> a >> b;
if (a == b) {
c++;
if (c >= 3)
temp = true;
} else
c--;
}
if (temp)
cout << "Yes\n";
else
cout << "No\n"... | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int a, b, c = 0;
bool temp = false;
for (int i = 0; i < n; i++) {
cin >> a >> b;
if (a == b) {
c++;
if (c >= 3)
temp = true;
} else
c = 0;
}
if (temp)
cout << "Yes\n";
else
cout << "No\n... | null | 244,821 | 244,822 | u938005217 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
using ll = long long;
using P = pair<ll, ll>;
string char_to_string(char val) { return string(1, val); }
int char_to_int(char val) { return val - '0'; }
template <class... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
using ll = long long;
using P = pair<ll, ll>;
string char_to_string(char val) { return string(1, val); }
int char_to_int(char val) { return val - '0'; }
template <class... | null | 244,839 | 244,840 | u198319923 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n;
cin >> n;
ll c = 0, max = 0;
for (ll i = 0; i < n; i++) {
ll a, b;
cin >> a >> b;
if (a == b) {
c++;
} else if (a != b && c != 3)
c = 0;
}
if (c == 3)
cout << "Yes" << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n;
cin >> n;
ll c = 0, max = 0;
for (ll i = 0; i < n; i++) {
ll a, b;
cin >> a >> b;
if (a == b) {
c++;
} else if (a != b && c < 3)
c = 0;
}
if (c >= 3)
cout << "Yes" << endl;
else
... | null | 244,858 | 244,859 | u566109499 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int n;
cin >> n;
int x, y;
bool b[101];
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x == y)
b[i] = 1;
else
b[i] = 0;
}
for (int i = 1; i < n - 1; i++) {
if (b[... | #include <bits/stdc++.h>
using namespace std;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int n;
cin >> n;
int x, y;
bool b[101];
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x == y)
b[i] = 1;
else
b[i] = 0;
}
for (int i = 1; i < n - 1; i++) {
if (b[... | null | 244,865 | 244,866 | u066174722 | cpp |
p02547 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
//#include<bits/stdc++.h>
#defin... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
//#include<bits/stdc++.h>
#defin... | null | 244,879 | 244,880 | u331213700 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define all(v) v.begin(), v.end()
#define boost ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define all(v) v.begin(), v.end()
#define boost ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) ... | null | 244,465 | 244,466 | u010844073 | cpp |
p02547 | #include <bits/stdc++.h>
#define fast_io \
ios::sync_with_stdio(false); \
cin.tie(0)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf = 0x3f3f3f3f;
const int N = (int)1e3 ... | #include <bits/stdc++.h>
#define fast_io \
ios::sync_with_stdio(false); \
cin.tie(0)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf = 0x3f3f3f3f;
const int N = (int)1e3 ... | null | 244,475 | 244,476 | u211202136 | cpp |
p02547 | #include <bits/stdc++.h>
#define int long long int
const int mod = 1e9 + 7;
#define fastinout \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
using namespace std;
int power(int x, int y, int p) {
int res ... | #include <bits/stdc++.h>
#define int long long int
const int mod = 1e9 + 7;
#define fastinout \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
using namespace std;
int power(int x, int y, int p) {
int res ... | null | 244,479 | 244,480 | u930529714 | cpp |
p02547 | #include <bits/stdc++.h>
#define ll long long
#define F first
#define S second
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin >> n;
int a[n], b[n];
int flag = 0, tag = 0, count = 0;
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
... | #include <bits/stdc++.h>
#define ll long long
#define F first
#define S second
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin >> n;
int a[n], b[n];
int flag = 0, tag = 0, count = 0;
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
... | null | 244,481 | 244,482 | u915967485 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define MP \
ios_base::sync_with_stdio(false); \
... | #include <bits/stdc++.h>
using namespace std;
#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define MP \
ios_base::sync_with_stdio(false); \
... | null | 244,485 | 244,486 | u784152492 | cpp |
p02547 | #pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define PB emplace_back
#define ALL(x) (x).begin(), (x).end()
#define endl '\n'
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vll = vector<ll>;
using pi = pair<int, int>;
using pll ... | #pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define PB emplace_back
#define ALL(x) (x).begin(), (x).end()
#define endl '\n'
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vll = vector<ll>;
using pi = pair<int, int>;
using pll ... | null | 244,489 | 244,490 | u459029717 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int D1[111], D2[111], N;
int main() {
cin >> N;
for (int i = 0; i < N; i++) {
cin >> D1[i] >> D2[i];
if (i >= 2) {
if (D1[i] - D2[i] == 0 && D1[i - 1] - D2[i - 1] &&
D1[i - 2] - D2[i - 2] == 0) {
cout << "Yes";
return 0;
}... | #include <bits/stdc++.h>
using namespace std;
int D1[111], D2[111], N;
int main() {
cin >> N;
for (int i = 0; i < N; i++) {
cin >> D1[i] >> D2[i];
if (i >= 2) {
if (D1[i] - D2[i] == 0 && D1[i - 1] - D2[i - 1] == 0 &&
D1[i - 2] - D2[i - 2] == 0) {
cout << "Yes";
return 0;
... | null | 244,497 | 244,498 | u932538724 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pint pair<int, int>
#define pll pair<ll, ll>
#define vint vector<int>
#define vll vector<ll>
#define ALL(x) (x).begin(), (x).end()
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
const int IN... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pint pair<int, int>
#define pll pair<ll, ll>
#define vint vector<int>
#define vll vector<ll>
#define ALL(x) (x).begin(), (x).end()
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
const int IN... | null | 244,501 | 244,502 | u394115537 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<pair<int, int>> p(N);
bool ans = false;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> p.at(i).first >> p.at(i).second;
if (p.at(i).first == p.at(i).second) {
count++;
if (count == 3)
ans ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<pair<int, int>> p(N);
bool ans = false;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> p.at(i).first >> p.at(i).second;
if (p.at(i).first == p.at(i).second) {
count++;
if (count == 3)
ans ... | null | 244,503 | 244,504 | u084686060 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
#define fast_io \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define F first
... | #include <bits/stdc++.h>
using namespace std;
#define fast_io \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define F first
... | null | 244,544 | 244,545 | u434005602 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int n;
cin >> n;
int counter = 0;
bool isCont = false;
for (int i = 0; i < n; i++) {
int a, b;
cin >> a >> b;
if (a == b) {
isCont = true;
counter++;
} else {
if (isCont) {
if (counter >= 3) {
co... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int n;
cin >> n;
int counter = 0;
bool isCont = false;
for (int i = 0; i < n; i++) {
int a, b;
cin >> a >> b;
if (a == b) {
isCont = true;
counter++;
} else {
if (isCont) {
if (counter >= 3) {
co... | null | 244,561 | 244,562 | u550297915 | cpp |
p02547 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define repeat(i, n) for (int i = 0; (i) < (n); ++(i))
#define repeat_from(i, m, n) for (int i = (m); (... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define repeat(i, n) for (int i = 0; (i) < (n); ++(i))
#define repeat_from(i, m, n) for (int i = (m); (... | null | 244,571 | 244,572 | u816645498 | cpp |
p02547 | #include <bits/stdc++.h>
#define name "test"
#define fi first
#define se second
#define ll long long
#define db double
#define pb push_back
#define wrln cout << '\n';
#define ii pair<int, int>
#define li pair<long long, int>
#define iii pair<int, ii>
using namespace std;
const int N = 2e3 + 100;
ll a[N][N], p[N], x, ... | #include <bits/stdc++.h>
#define name "test"
#define fi first
#define se second
#define ll long long
#define db double
#define pb push_back
#define wrln cout << '\n';
#define ii pair<int, int>
#define li pair<long long, int>
#define iii pair<int, ii>
using namespace std;
const int N = 2e3 + 100;
ll a[N][N], p[N], x, ... | null | 244,573 | 244,574 | u158111417 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl '\n'
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repab(i, a, b) for (int i = a; i <= b; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define printarr(... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl '\n'
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repab(i, a, b) for (int i = a; i <= b; i++)
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define printarr(... | null | 244,606 | 244,608 | u459534977 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> A(N);
vector<int> B(N);
for (int i = 0; i < N; i++) {
cin >> A.at(i) >> B.at(i);
}
bool S = false;
for (int i = 0; i < N - 2; i++) {
if (A.at(i) == A.at(i)) {
if (A.at(i + 1) == A.at(i + 1)) {
i... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> A(N);
vector<int> B(N);
for (int i = 0; i < N; i++) {
cin >> A.at(i) >> B.at(i);
}
bool S = false;
for (int i = 0; i < N - 2; i++) {
if (A.at(i) == B.at(i)) {
if (A.at(i + 1) == B.at(i + 1)) {
i... | null | 244,618 | 244,620 | u122557489 | cpp |
p02547 | #pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define bg begin()
#define en end()
#define vvl(n, m) vector<vector<ll>> a(n, vector<ll>(m))
#define fast ... | #pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define bg begin()
#define en end()
#define vvl(n, m) vector<vector<ll>> a(n, vector<ll>(m))
#define fast ... | null | 245,085 | 245,086 | u836287089 | cpp |
p02547 | #pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define bg begin()
#define en end()
#define vvl(n, m) vector<vector<ll>> a(n, vector<ll>(m))
#define fast ... | #pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define bg begin()
#define en end()
#define vvl(n, m) vector<vector<ll>> a(n, vector<ll>(m))
#define fast ... | null | 245,087 | 245,086 | u836287089 | cpp |
p02547 | #include <algorithm>
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
using u64 = uint64_t;
int main() {
int N;
int D[100][2];
cin >> N;
for (int i = 0; i < N; i++) {
cin >> D[i][0] >> D[i][1];
}
for (int i = 0; i < 98; i++) {
if (D[i][0] == D[i]... | #include <algorithm>
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
using u64 = uint64_t;
int main() {
int N;
int D[100][2];
cin >> N;
for (int i = 0; i < N; i++) {
cin >> D[i][0] >> D[i][1];
}
for (int i = 0; i < N - 2; i++) {
if (D[i][0] == D... | null | 245,092 | 245,093 | u808840429 | cpp |
p02547 | #include <bits/stdc++.h>
#include <ctime>
#include <stdlib.h>
#include <unordered_map>
using namespace std;
#define ll long long int
#define mod 1000000007
#define modd 998244353
#define com(a, n) \
for (ll i = 0; i < n; i++) ... | #include <bits/stdc++.h>
#include <ctime>
#include <stdlib.h>
#include <unordered_map>
using namespace std;
#define ll long long int
#define mod 1000000007
#define modd 998244353
#define com(a, n) \
for (ll i = 0; i < n; i++) ... | null | 245,140 | 245,139 | u248004466 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(NULL);
int n;
cin >> n;
int a[n + 5], b[n + 5];
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
}
bool can = 0;
for (int i = 2; i < n; i++) {
if (a[i - 2] == b[i - 2] && a[i - 1] == b[i - 1] &... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(NULL);
int n;
cin >> n;
int a[n + 5], b[n + 5];
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
}
bool can = 0;
for (int i = 2; i < n; i++) {
if (a[i - 2] == b[i - 2] && a[i - 1] == b[i - 1] &... | null | 245,149 | 245,150 | u272729698 | cpp |
p02547 | #include <bits/stdc++.h>
#define int long long
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define re(x) c... | #include <bits/stdc++.h>
#define int long long
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define re(x) c... | null | 245,282 | 245,283 | u735675333 | cpp |
p02547 | #include <bits/stdc++.h>
typedef long long ll;
const int N = 1e5 + 5;
int n;
int d[105][3];
int main() {
// freopen("a.in","r",stdin);
// int T;scanf("%d",&T);for(int tttt=1;tttt<=T;tttt++){
if (1) {
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d%d", &d[i][1], &d[i][2]);
bool ok = 0;
... | #include <bits/stdc++.h>
typedef long long ll;
const int N = 1e5 + 5;
int n;
int d[105][3];
int main() {
// freopen("a.in","r",stdin);
// int T;scanf("%d",&T);for(int tttt=1;tttt<=T;tttt++){
if (1) {
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d%d", &d[i][1], &d[i][2]);
bool ok = 0;
... | null | 245,286 | 245,287 | u269806533 | cpp |
p02547 | /*#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long // comment it out when MLE
#define endl "\n"
#define gok ... | /*#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long // comment it out when MLE
#define endl "\n"
#define gok ... | null | 245,288 | 245,289 | u799603904 | cpp |
p02547 | #include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, a, b, c = 0;
cin >> n;
bool f = false;
while (n--) {
cin >> a >> b;
if (a == b) {
++c;
if (c == 3) {
f = true;
break;
}
... | #include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, a, b, c = 0;
cin >> n;
bool f = false;
while (n--) {
cin >> a >> b;
if (a == b) {
++c;
if (c == 3) {
f = true;
break;
}
... | null | 245,290 | 245,291 | u282616179 | cpp |
p02547 | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin >> N;
int a, b;
int cnt = 0;
bool flag = false;
for (int i = 0; i < N; ++i) {
cin >> a >> b;
if (a == b)
++cnt;
else
cnt = 0;
if (cnt >= 3)
flag = true;
... | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin >> N;
int a, b;
int cnt = 0;
bool flag = false;
for (int i = 0; i < N; ++i) {
cin >> a >> b;
if (a == b)
++cnt;
else
cnt = 0;
if (cnt >= 3)
flag = true;
... | null | 245,292 | 245,293 | u183909735 | cpp |
p02547 | #include <bits/stdc++.h>
using namespace std;
void __print(int x) { cout << x; }
void __print(long x) { cout << x; }
void __print(long long x) { cout << x; }
void __print(unsigned x) { cout << x; }
void __print(unsigned long x) { cout << x; }
void __print(unsigned long long x) { cout << x; }
void __print(float x) { cou... | #include <bits/stdc++.h>
using namespace std;
void __print(int x) { cout << x; }
void __print(long x) { cout << x; }
void __print(long long x) { cout << x; }
void __print(unsigned x) { cout << x; }
void __print(unsigned long x) { cout << x; }
void __print(unsigned long long x) { cout << x; }
void __print(float x) { cou... | null | 245,310 | 245,311 | u942759153 | cpp |
p02547 | #include <bits/stdc++.h>
const unsigned long long int M = 1000000007;
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define fr(i, n) for (int i = 0; i < n; i++)
#define pb push_back
#define int long long
#define endl "\n"
using namespace std;
int power(int x, int y) {
int res = 1;
while (y ... | #include <bits/stdc++.h>
const unsigned long long int M = 1000000007;
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define fr(i, n) for (int i = 0; i < n; i++)
#define pb push_back
#define int long long
#define endl "\n"
using namespace std;
int power(int x, int y) {
int res = 1;
while (y ... | null | 245,324 | 245,325 | u745008216 | cpp |
p02534 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int k;
cin >> k;
rep(i, k) cout << "ACL" << endl;
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int k;
cin >> k;
rep(i, k) cout << "ACL";
cout << endl;
} | null | 239,881 | 239,882 | u085927574 | cpp |
p02534 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, s, n) for (int i = s; i < n; i++)
int main() {
int k;
cin >> k;
rep(i, k) cout << "ALC";
cout << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, s, n) for (int i = s; i < n; i++)
int main() {
int k;
cin >> k;
rep(i, k) cout << "ACL";
cout << endl;
return 0;
} | null | 239,920 | 239,921 | u191728703 | cpp |
p02534 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
for (int i = 0; i < N; i++) {
cout << "ALC";
}
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
for (int i = 0; i < N; i++) {
cout << "ACL";
}
} | null | 239,942 | 239,943 | u884074699 | cpp |
p02534 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s = "ACL";
int cnt = 0;
cin >> cnt;
for (int i = 0; i < cnt; i++)
s += "ACL";
cout << s;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string s = "";
int cnt = 0;
cin >> cnt;
for (int i = 0; i < cnt; i++)
s += "ACL";
cout << s;
}
| null | 239,996 | 239,997 | u724056356 | cpp |
p02534 | #include <bits/stdc++.h>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int k;
for (int i = 0; i < k; i++) {
printf("ACL");
}
return 0;
} | #include <bits/stdc++.h>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int k;
cin >> k;
for (int i = 0; i < k; i++) {
printf("ACL");
}
return 0;
} | null | 240,232 | 240,233 | u947115160 | cpp |
p02534 | #include "bits/stdc++.h"
using namespace std;
const int MAX = 700000;
const int MOD = 1000000007;
long long fac[MAX], finv[MAX], inv[MAX];
// テーブルを作る前処理
void COMinit() {
fac[0] = fac[1] = 1;
finv[0] = finv[1] = 1;
inv[1] = 1;
for (int i = 2; i < MAX; i++) {
fac[i] = fac[i - 1] * i % MOD;
inv[i] = MOD -... | #include "bits/stdc++.h"
using namespace std;
const int MAX = 700000;
const int MOD = 1000000007;
long long fac[MAX], finv[MAX], inv[MAX];
// テーブルを作る前処理
void COMinit() {
fac[0] = fac[1] = 1;
finv[0] = finv[1] = 1;
inv[1] = 1;
for (int i = 2; i < MAX; i++) {
fac[i] = fac[i - 1] * i % MOD;
inv[i] = MOD -... | null | 240,242 | 240,243 | u473116917 | cpp |
p02534 | #include <bits/stdc++.h>
#define ll long long
#define fastIO \
ios_base::sync_with_stdio(false); \
cin.tie(0);
ll fpow(ll a, ll b, ll mod) {
if (b == 0)
return 1;
if (b == 1)
return a;
ll prod =... | #include <bits/stdc++.h>
#define ll long long
#define fastIO \
ios_base::sync_with_stdio(false); \
cin.tie(0);
ll fpow(ll a, ll b, ll mod) {
if (b == 0)
return 1;
if (b == 1)
return a;
ll prod =... | null | 240,107 | 240,108 | u114417109 | cpp |
p02534 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
#define yn(x) ((x) ? "YES" : "NO")
typedef pair<int, int> ii;
typedef pair<int, ii> iii;
const int siz = 2e5 + 10;
const int SIZ = 1e6 + 10;
const... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
#define yn(x) ((x) ? "YES" : "NO")
typedef pair<int, int> ii;
typedef pair<int, ii> iii;
const int siz = 2e5 + 10;
const int SIZ = 1e6 + 10;
const... | null | 239,940 | 239,941 | u849103915 | cpp |
p02534 | #include <iostream>
using namespace std;
using ll = long long;
signed main() {
int k;
for (int i = 0; i < k; i++)
cout << "ACL";
}
| #include <iostream>
using namespace std;
using ll = long long;
signed main() {
int k;
cin >> k;
for (int i = 0; i < k; i++)
cout << "ACL";
}
| null | 240,406 | 240,407 | u707794016 | cpp |
p02536 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = 1e18;
struct UnionFind {
vector<int> d;
UnionFind(int n) : d(n, -1) {} //-1で初期化
int root(int x) {
if (d[x] < 0)
return x; // rootを負にする(構成node数x(-1))... |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = 1e18;
struct UnionFind {
vector<int> d;
UnionFind(int n) : d(n, -1) {} //-1で初期化
int root(int x) {
if (d[x] < 0)
return x; // rootを負にする(構成node数x(-1))... | null | 241,237 | 241,238 | u289381123 | cpp |
p02536 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define All(a) (a).begin(), (a).end()
#define N 100001
int *par;
int *rrank;
int root(int x) {
if (par[x] == x)
return x;
else
return par[x] = root(par[x]);
}
void init(int n) {
for (int i = 0; i <= n; i++) {
par[i] = i;
rran... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define All(a) (a).begin(), (a).end()
#define N 100001
int *par;
int *rrank;
int root(int x) {
if (par[x] == x)
return x;
else
return par[x] = root(par[x]);
}
void init(int n) {
for (int i = 0; i <= n; i++) {
par[i] = i;
rran... | null | 241,315 | 241,316 | u147565829 | cpp |
p02536 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
const int maxn = 1e5 + 10;
int fa[maxn], vis[maxn];
int n, m;
int x, y;
int ans;
int get(int x) { return fa[x] == x ? x : fa[x] = get(fa[x]); }
void Union(int x, int y) {
int xx = get(x);
int... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
const int maxn = 1e5 + 10;
int fa[maxn], vis[maxn];
int n, m;
int x, y;
int ans;
int get(int x) { return fa[x] == x ? x : fa[x] = get(fa[x]); }
void Union(int x, int y) {
int xx = get(x);
int... | null | 241,321 | 241,322 | u218982763 | cpp |
p02536 | #include <bits/stdc++.h>
#ifdef _DEBUG
#include "_DEBUG.hpp"
#endif
#define int long long
using namespace std;
using P = pair<int, int>;
const int inf = 2e18;
const int mod = 1e9 + 7;
template <typename T> istream &operator>>(istream &is, vector<T> &v) {
for (T &in : v)
is >> in;
return is;
}
template <class ... | #include <bits/stdc++.h>
#ifdef _DEBUG
#include "_DEBUG.hpp"
#endif
#define int long long
using namespace std;
using P = pair<int, int>;
const int inf = 2e18;
const int mod = 1e9 + 7;
template <typename T> istream &operator>>(istream &is, vector<T> &v) {
for (T &in : v)
is >> in;
return is;
}
template <class ... | null | 241,363 | 241,364 | u344122377 | cpp |
p02536 | #include <bits/stdc++.h>
#ifdef _DEBUG
#include "_DEBUG.hpp"
#endif
#define int long long
using namespace std;
using P = pair<int, int>;
const int inf = 2e18;
const int mod = 1e9 + 7;
template <typename T> istream &operator>>(istream &is, vector<T> &v) {
for (T &in : v)
is >> in;
return is;
}
template <class ... | #include <bits/stdc++.h>
#ifdef _DEBUG
#include "_DEBUG.hpp"
#endif
#define int long long
using namespace std;
using P = pair<int, int>;
const int inf = 2e18;
const int mod = 1e9 + 7;
template <typename T> istream &operator>>(istream &is, vector<T> &v) {
for (T &in : v)
is >> in;
return is;
}
template <class ... | null | 241,365 | 241,364 | u344122377 | cpp |
p02536 | #include <bits/stdc++.h>
using namespace std;
int mod = 1e9 + 7;
int find(int a, vector<int> &group) {
if (a = group[a])
return a;
return find(group[a], group);
}
void unite(int group_a, int group_b, vector<int> &group, vector<int> &rank) {
if (rank[group_a] < rank[group_b])
swap(group_a, group_b);
... | #include <bits/stdc++.h>
using namespace std;
int mod = 1e9 + 7;
int find(int a, vector<int> &group) {
if (a == group[a])
return a;
return find(group[a], group);
}
void unite(int group_a, int group_b, vector<int> &group, vector<int> &rank) {
if (rank[group_a] < rank[group_b])
swap(group_a, group_b);
... | null | 241,368 | 241,369 | u512512497 | cpp |
p02536 | #include <bits/stdc++.h>
using namespace std;
int n, m;
set<int> s;
int fa[100005];
int find(int x) {
if (fa[x] == x)
return x;
return fa[x] = find(fa[x]);
}
void unite(int x, int y) {
x = find(x);
y = find(y);
fa[x] = y;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
c... | #include <bits/stdc++.h>
using namespace std;
int n, m;
set<int> s;
int fa[100005];
int find(int x) {
if (fa[x] == x)
return x;
return fa[x] = find(fa[x]);
}
void unite(int x, int y) {
x = find(x);
y = find(y);
fa[x] = y;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
c... | null | 240,935 | 240,936 | u659725815 | cpp |
p02536 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int MOD = 1e9 + 7;
struct UnionFind {
vector<int> par;
vector<int> count;
UnionFind(int N) : par(N), count(N) {
for (int i = 0; i < N; i++) {
par[i] = i;
count[i] = 1;
}
}
int root(int x) ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int MOD = 1e9 + 7;
struct UnionFind {
vector<int> par;
vector<int> count;
UnionFind(int N) : par(N), count(N) {
for (int i = 0; i < N; i++) {
par[i] = i;
count[i] = 1;
}
}
int root(int x) ... | null | 240,894 | 240,895 | u431907935 | cpp |
p02536 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5 + 20;
int fa[N];
int xfind(int x) { return fa[x] = x ? x : fa[x] = xfind(fa[x]); }
void into(int x, int y) {
int xx = xfind(x);
int yy = xfind(y);
if (xx != yy)
fa[xx] = yy;
}
int main() {
int n, m;
cin >> n >> m;
for... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5 + 20;
int fa[N];
int xfind(int x) { return fa[x] == x ? x : fa[x] = xfind(fa[x]); }
void into(int x, int y) {
int xx = xfind(x);
int yy = xfind(y);
if (xx != yy)
fa[xx] = yy;
}
int main() {
int n, m;
cin >> n >> m;
fo... | null | 241,003 | 241,004 | u322266296 | cpp |
p02536 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pi;
typedef vector<ll> vi;
typedef vector<pi> vpi;
typedef long double ld;
const int inf = 1e9 + 7;
const int mod = 1e9 + 7;
const int maxn = 1e6 + 3;
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#de... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pi;
typedef vector<ll> vi;
typedef vector<pi> vpi;
typedef long double ld;
const int inf = 1e9 + 7;
const int mod = 1e9 + 7;
const int maxn = 1e6 + 3;
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#de... | null | 241,046 | 241,047 | u290208722 | cpp |
p02536 | #include <iostream>
using namespace std;
const int maxn = 3e5 + 7;
int n, m, f[maxn];
int fin(int x);
void bing(int x, int y);
int main() {
scanf("%d %d", &n, &m);
for (int i = 1; i <= n; i++) {
f[i] = 1;
}
for (int i = 1; i <= m; i++) {
int u, v;
scanf("%d %d", &u, &v);
bing(u, v);
}
int ... | #include <iostream>
using namespace std;
const int maxn = 3e5 + 7;
int n, m, f[maxn];
int fin(int x);
void bing(int x, int y);
int main() {
scanf("%d %d", &n, &m);
for (int i = 1; i <= n; i++) {
f[i] = i;
}
for (int i = 1; i <= m; i++) {
int u, v;
scanf("%d %d", &u, &v);
bing(u, v);
}
int ... | null | 241,076 | 241,077 | u190648947 | cpp |
p02536 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define M 1000000007
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
const int N = 1e5 + 1;
int n, m, par[N];
int findp(int x) {
if (x == par[x])
return x;
return par[x] = findp(par[x]);
}
int ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define M 1000000007
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
const int N = 1e5 + 1;
int n, m, par[N];
int findp(int x) {
if (x == par[x])
return x;
return par[x] = findp(par[x]);
}
int ... | null | 241,567 | 241,568 | u472009936 | cpp |
p02536 | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author Aman
*/
#include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
#d... | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author Aman
*/
#include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
#d... | null | 241,601 | 241,602 | u149999193 | cpp |
p02536 | #include <bits/stdc++.h>
typedef long long ll;
#define F(i, L, R) for (ll i = L; i < R; i++)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define re(x) scanf("%lld", &x)
using namespace std;
void dfs(ll u, vector<ll> &vis, vector<ll> adj[]) {
vis[u] = 1;
for (auto i : adj[u])
if... | #include <bits/stdc++.h>
typedef long long ll;
#define F(i, L, R) for (ll i = L; i < R; i++)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define re(x) scanf("%lld", &x)
using namespace std;
void dfs(ll u, vector<ll> &vis, vector<ll> adj[]) {
vis[u] = 1;
for (auto i : adj[u])
if... | null | 241,640 | 241,641 | u176743365 | cpp |
p02536 | #include <bits/stdc++.h>
// typedef long long int ll;
using namespace std;
using ll = long long int;
using ld = long double;
using Vc = vector<char>;
using Vs = vector<string>;
using Vll = vector<ll>;
using VVll = vector<vector<ll>>;
using Vld = vector<ld>;
using Vi = vector<int>;
using Sll = set<ll>;
using Sld = set<l... | #include <bits/stdc++.h>
// typedef long long int ll;
using namespace std;
using ll = long long int;
using ld = long double;
using Vc = vector<char>;
using Vs = vector<string>;
using Vll = vector<ll>;
using VVll = vector<vector<ll>>;
using Vld = vector<ld>;
using Vi = vector<int>;
using Sll = set<ll>;
using Sld = set<l... | null | 241,642 | 241,643 | u782386167 | cpp |
p02537 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define forn(i, a, b) for (int i = a; i < b; ++i)
#define SZ(x) int(x.size())
#define pb push_back
#define F first
#define S second
void dbg_out() { cerr << endl; }
template <typename Head, typename... Tail> void dbg_out(Hea... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define forn(i, a, b) for (int i = a; i < b; ++i)
#define SZ(x) int(x.size())
#define pb push_back
#define F first
#define S second
void dbg_out() { cerr << endl; }
template <typename Head, typename... Tail> void dbg_out(Hea... | null | 242,018 | 242,019 | u834037676 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.