From d644e8a37938299b0b8d501d2e33323d019a6010 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Thu, 15 Jun 2023 00:13:08 +0600 Subject: [PATCH] Initial commit --- 486A Calculating Function/486A.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 486A Calculating Function/486A.cpp diff --git a/486A Calculating Function/486A.cpp b/486A Calculating Function/486A.cpp new file mode 100644 index 0000000..f888447 --- /dev/null +++ b/486A Calculating Function/486A.cpp @@ -0,0 +1,23 @@ +#include +using namespace std; +using ll = long long; + +void solve() +{ + ll n,sum=0; + cin>>n; + if(n%2==0) sum=n/2; + else sum=-(n/2+1); + cout<> TC; + //cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file