Answers for "The Rating Dilemma codechef solution in c++"

C++
0

The Rating Dilemma codechef solution in c++

#include<iostream>
#include<algorithm>
#include<vector>
#define ll long long
using namespace std;

void solve()
{
	ll n;
	cin >> n;
	ll to = n + 1;
	cout << to * -1 << "\n";
}

int main()
{
	int t;
	cin >> t;
	while (t--)
	{
		solve();
	}
	return 0;
}
Posted by: Guest on March-28-2022

Code answers related to "The Rating Dilemma codechef solution in c++"

Browse Popular Code Answers by Language