From 73f17843670c3f848fd55a914e014ecb52394e35 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Tue, 4 Jul 2023 00:37:29 +0600 Subject: [PATCH] initial commit --- 1758B XOR = Average/1758B.cpp | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 1758B XOR = Average/1758B.cpp diff --git a/1758B XOR = Average/1758B.cpp b/1758B XOR = Average/1758B.cpp new file mode 100644 index 0000000..223f41b --- /dev/null +++ b/1758B XOR = Average/1758B.cpp @@ -0,0 +1,37 @@ +#include +using namespace std; +using ll = long long; + +void solve() +{ + int n; + cin>>n; + if(n%2==0) + { + cout<<"1 3"; + for(int i=1; i<=n-2; ++i) + { + cout<<" 2"; + } + cout<> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file