From 0762dd313e230ebd719051e83cbd1813062a4870 Mon Sep 17 00:00:00 2001 From: nishant6897 <110482852+nishant6897@users.noreply.github.com> Date: Mon, 17 Oct 2022 17:35:42 +0530 Subject: [PATCH] Create card_removal.cpp --- card_removal.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 card_removal.cpp diff --git a/card_removal.cpp b/card_removal.cpp new file mode 100644 index 0000000..193454f --- /dev/null +++ b/card_removal.cpp @@ -0,0 +1,27 @@ +#include +using namespace std; + +int main() { + + int t; + cin>>t; + while(t--){ + int n; + cin>>n; + int a[n]; + maps; + for(int i=0;i>a[i]; + s[a[i]]++; + } + int l=0; + for(int i=0;i