From e91f3692214ded63ef8a6a1138b73bc323896d1d Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Wed, 5 Jul 2023 00:20:42 +0600 Subject: [PATCH] initial commit --- 1791B Following Directions/1791B.cpp | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 1791B Following Directions/1791B.cpp diff --git a/1791B Following Directions/1791B.cpp b/1791B Following Directions/1791B.cpp new file mode 100644 index 0000000..3cf9c39 --- /dev/null +++ b/1791B Following Directions/1791B.cpp @@ -0,0 +1,35 @@ +#include +using namespace std; +using ll = long long; + +void solve() +{ + int n,x=0,y=0; + cin>>n; + string s; + cin>>s; + for(int i=0;i> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file