This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <bits/stdc++.h> | |
using namespace std; | |
auto find_number(vector<int> &a, int start, int r, int counter) { | |
if (start > r) return counter; | |
if (find(a.begin(), a.end(), start) != a.end()) { | |
counter += count(a.begin(), a.end(), start); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main() { | |
int n, k; | |
cin >> n; | |
vector<int> a(n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
//#define int long long | |
const int INF = 1e9; | |
auto solve_agent() { | |
int n, k; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
//#define int long long | |
auto print(string i){ | |
cout << i << endl; | |
} | |
auto solve_3() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
//#define int long long | |
auto print(string i) { | |
cout << i << endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
auto print_bool(vector<bool> i) { | |
for (int j = 0; j < i.size(); j++) { | |
cout << i[j] << " "; | |
} | |
cout << "\n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
//#define int long long | |
auto solve_1() { | |
int n; | |
scanf("%d", &n); | |
vector<vector<int>> ans(n, vector<int>(n, 0)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define int long long | |
auto print(vector<int> d) { | |
for (auto x: d) { | |
cout << x << " "; | |
} | |
cout << "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define int long long | |
auto print(vector<int> d) { | |
for (auto x: d) { | |
cout << x << " "; | |
} | |
cout << "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#define int long long | |
using namespace std; | |
// ~ - инверсия всех бит | |
// & - И - конконтенация совподающих бит | |
// | - ИЛИ - конкотенация всех бит | |
string sum(const string &A, const string &B) { | |
int G = 0; |
OlderNewer