Kattis Problem Solution to R2 in C++


#include<bits/stdc++.h>

using namespace std;
int main(int argc, char const *argv[])
{
int r1,s;
cin>>r1>>s;
cout<<((2*s)-r1);
return 0;
}

Comments

Popular posts from this blog

Basketball One-on-One : Kattis Solution in C++

Kattis Solution to Reverse Binary in C++

Kattis Solution to Odd Man out In cpp