From b33f33c32be5539e53a8c81e821908010d4de97f Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Thu, 3 Aug 2023 02:43:23 +0600 Subject: [PATCH] initial commit --- 34A Reconnaissance 2/34A.cpp | 41 ++++++++++++++++++++++++++++++ 584A Olesya and Rodion/584A.cpp | 44 +++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 34A Reconnaissance 2/34A.cpp create mode 100644 584A Olesya and Rodion/584A.cpp diff --git a/34A Reconnaissance 2/34A.cpp b/34A Reconnaissance 2/34A.cpp new file mode 100644 index 0000000..09ac550 --- /dev/null +++ b/34A Reconnaissance 2/34A.cpp @@ -0,0 +1,41 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int n; + cin>>n; + vectorv; + for(int i=0; i>x; + v.push_back(x); + } + int d=abs(v[0]-v[n-1]); + int x=1, y=n; + for(int i=1; i> TC; + // cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file diff --git a/584A Olesya and Rodion/584A.cpp b/584A Olesya and Rodion/584A.cpp new file mode 100644 index 0000000..dc1c8f3 --- /dev/null +++ b/584A Olesya and Rodion/584A.cpp @@ -0,0 +1,44 @@ +#include +using namespace std; +using ll = long long; + +void solve() +{ + int n,t; + cin >> n >> t; + string s; + if (t == 10) + { + if(n==1) + { + cout<<-1<> TC; + // cin.ignore(); + while (TC--) + solve(); +} \ No newline at end of file