From 3fe7d6afe5707ee442d085e064eb427646a41850 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Fri, 14 Jul 2023 01:31:22 +0600 Subject: [PATCH] initial commit --- 1828A Divisible Array/1828A.cpp | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 1828A Divisible Array/1828A.cpp diff --git a/1828A Divisible Array/1828A.cpp b/1828A Divisible Array/1828A.cpp new file mode 100644 index 0000000..930cc13 --- /dev/null +++ b/1828A Divisible Array/1828A.cpp @@ -0,0 +1,39 @@ +#include +using namespace std; +using ll = long long; + +void solve() +{ + int n; + cin>>n; + int a[n+1]; + int sum = 0; + for (int i = 1; i <= n; ++i) + { + a[i] = i ; + sum = sum + i; + } + cerr<> TC; + cin.ignore(); + while (TC--) + solve(); +} \ No newline at end of file