From 5e1d017c79bbc23c4c488318cbf001296cf7839a Mon Sep 17 00:00:00 2001 From: Shazid Mashrafi Date: Mon, 14 Aug 2023 09:04:11 +0600 Subject: [PATCH] initial commit --- 1360B Honest Coach/1360B.cpp | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 1360B Honest Coach/1360B.cpp diff --git a/1360B Honest Coach/1360B.cpp b/1360B Honest Coach/1360B.cpp new file mode 100644 index 0000000..f989b73 --- /dev/null +++ b/1360B Honest Coach/1360B.cpp @@ -0,0 +1,56 @@ +#include +using namespace std; + +#define ll long long +#define ul unsigned long long +#define pb push_back +#define ss second +#define ff first +#define fr(n) for(int i=0; i=0; i--) +#define nl '\n' +#define yes cout<<"YES"<>n; + vectorv(n); + fr(n) + cin>>v[i]; + sort(all(v)); + int diff=INT_MAX; + fro(n) + { + diff=min(v[i]-v[i-1],diff); + } + cout<> TC; + while (TC--) solve(); +} \ No newline at end of file