From 181721e4957ba92b8ff5842f6743f62378ab2fc8 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Thu, 3 Aug 2023 02:42:55 +0600 Subject: [PATCH] initial commit --- 1846A Rudolph and Cut the Rope/1846A.cpp | 29 +++++++++++++++++++ 1851A Escalator Conversations/1851A.cpp | 36 ++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 1846A Rudolph and Cut the Rope/1846A.cpp create mode 100644 1851A Escalator Conversations/1851A.cpp diff --git a/1846A Rudolph and Cut the Rope/1846A.cpp b/1846A Rudolph and Cut the Rope/1846A.cpp new file mode 100644 index 0000000..ad56891 --- /dev/null +++ b/1846A Rudolph and Cut the Rope/1846A.cpp @@ -0,0 +1,29 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int n; + cin>>n; + int ct=0; + for(int i=0; i>x>>y; + if(x>y) ct++; + } + cout<> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file diff --git a/1851A Escalator Conversations/1851A.cpp b/1851A Escalator Conversations/1851A.cpp new file mode 100644 index 0000000..d72cd50 --- /dev/null +++ b/1851A Escalator Conversations/1851A.cpp @@ -0,0 +1,36 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int n, m, k, H; + cin>>n>>m>>k>>H; + vectorv; + for(int i=0; i>x; + v.push_back(x); + } + int ct=0; + for(int i=0; i> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file