diff options
Diffstat (limited to 'codechef/ReversalSorting')
| -rw-r--r-- | codechef/ReversalSorting/inp | 0 | ||||
| -rwxr-xr-x | codechef/ReversalSorting/main | bin | 0 -> 33792 bytes | |||
| -rw-r--r-- | codechef/ReversalSorting/main.cpp | 23 | ||||
| -rw-r--r-- | codechef/ReversalSorting/main_input0.txt | 7 | ||||
| -rw-r--r-- | codechef/ReversalSorting/main_output0.txt | 3 |
5 files changed, 33 insertions, 0 deletions
diff --git a/codechef/ReversalSorting/inp b/codechef/ReversalSorting/inp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/codechef/ReversalSorting/inp diff --git a/codechef/ReversalSorting/main b/codechef/ReversalSorting/main Binary files differnew file mode 100755 index 0000000..309357f --- /dev/null +++ b/codechef/ReversalSorting/main 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<bits/stdc++.h> + +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<int> v(n); + for(int &i : v) cin >> i; + vector<vector<int>> 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++){ + + } + } + } +} diff --git a/codechef/ReversalSorting/main_input0.txt b/codechef/ReversalSorting/main_input0.txt new file mode 100644 index 0000000..c940944 --- /dev/null +++ b/codechef/ReversalSorting/main_input0.txt @@ -0,0 +1,7 @@ +3 +4 1 +1 2 3 4 +4 1 +2 1 3 4 +5 7 +3 2 2 3 3 diff --git a/codechef/ReversalSorting/main_output0.txt b/codechef/ReversalSorting/main_output0.txt new file mode 100644 index 0000000..0db7433 --- /dev/null +++ b/codechef/ReversalSorting/main_output0.txt @@ -0,0 +1,3 @@ +YES +NO +YES |
