From 540ee754e727cbf55f1e452cf50d5e4e1c71bbb8 Mon Sep 17 00:00:00 2001 From: AsesinoAkg Date: Sat, 22 Oct 2022 00:24:32 +0530 Subject: [PATCH] c++ solution for funny permutation --- funny | 0 funnypermutation.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 funny create mode 100644 funnypermutation.cpp diff --git a/funny b/funny new file mode 100644 index 0000000..e69de29 diff --git a/funnypermutation.cpp b/funnypermutation.cpp new file mode 100644 index 0000000..1233d23 --- /dev/null +++ b/funnypermutation.cpp @@ -0,0 +1,42 @@ +#include +using namespace std; +#define fast ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); + + +int main() +{ + + + int ttt; + cin>>ttt; + while(ttt--) + { + int n1; + cin>>n1; + if(n1==3) + cout<<"-1"< anurag; i--) + { + cout<= 1; i--) + { + cout<