From 13ae5b6eaaa4779009633eda567b4f1735669ac3 Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Sun, 26 Jun 2022 14:24:52 +0200 Subject: partially solved reversal sorting on codechef --- codechef/ReversalSorting/main.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 codechef/ReversalSorting/main.cpp (limited to 'codechef/ReversalSorting/main.cpp') diff --git a/codechef/ReversalSorting/main.cpp b/codechef/ReversalSorting/main.cpp new file mode 100644 index 0000000..1a88262 --- /dev/null +++ b/codechef/ReversalSorting/main.cpp @@ -0,0 +1,23 @@ +#include + +using namespace std; + +int main () { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int tt; + cin >> tt; + while(tt--){ + int n, x; + cin >> n >> x; + vector v(n); + for(int &i : v) cin >> i; + vector> sa; + // 1 2 2 3 2 2 3 3 + for(int i = 0; i < v.size(); i++) { + for(int j = 0; j < v.size(); j++){ + + } + } + } +} -- cgit v1.2.3