From 342d345ac3f3e377a7179c874c4f33cedf867d42 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Wed, 20 Dec 2023 12:55:48 +0600 Subject: [PATCH] added 1914D --- Codes/1914D Three Activities/1914D.cpp | 110 +++++++++++++++++++++++++ Readme.md | 2 + 2 files changed, 112 insertions(+) create mode 100644 Codes/1914D Three Activities/1914D.cpp diff --git a/Codes/1914D Three Activities/1914D.cpp b/Codes/1914D Three Activities/1914D.cpp new file mode 100644 index 0000000..747a401 --- /dev/null +++ b/Codes/1914D Three Activities/1914D.cpp @@ -0,0 +1,110 @@ +#include +using namespace std; + +// Short forms +#define int long long +#define ll long long +#define endl '\n' +#define ff first +#define ss second +#define pb push_back +#define all(x) x.begin(), x.end() +#define sz(x) (int)(x).size() + +// Outputs +#define yes cout<<"YES"< void _print(pair p); +template void _print(vector v);template void _print(set v); +template void _print(map v);template void _print(multiset v); +template void _print(pair p) {cerr << "{"; _print(p.first); cerr << ","; _print(p.second); cerr << "}";} +template void _print(vector v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(set v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(multiset v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(unordered_set v) {cerr<<"[ "; for(T i : v) {_print(i); cerr<<" ";} cerr<<"]";} +template void _print(map v) {cerr << "[ "; for (auto i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(multimap v) {cerr << "[ "; for (auto i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(unordered_map v) {cerr << "[ "; for (auto i : v) {_print(i); cerr << " ";} cerr << "]";} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +bool cmp(paira, pair b) +{ + if(a.ff==b.ff) + return a.ssb.ff; +} + +bool cmp2(pair,int>a, pair,int>b) +{ +} + +void solve() +{ + int n; + cin>>n; + vectora(n),b(n),c(n); + for(auto &x:a) cin>>x; + for(auto &x:b) cin>>x; + for(auto &x:c) cin>>x; + set>p,q; + for(int i=0; i> TC; + while (TC--) solve(); +} \ No newline at end of file diff --git a/Readme.md b/Readme.md index 7eb1620..c2aefa7 100644 --- a/Readme.md +++ b/Readme.md @@ -213,6 +213,8 @@ This repository contains my solutions of Codeforces problems. They are in C++ la | 1914A | Problemsolving Log | [Question](https://codeforces.com/problemset/problem/1914/A) | [Solution] | 1914B | Preparing for the Contest | [Question](https://codeforces.com/problemset/problem/1914/B) | [Solution] | 1914C | Quests | [Question](https://codeforces.com/problemset/problem/1914/C) | [Solution] +| 1914D | Three Activities | [Question](https://codeforces.com/problemset/problem/1914/D) | [Solution] +