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