➤ Problem Link : EIGHTS
👉 Hint : Simple Math
✅ C++ Solution :
#include<bits/stdc++.h> using namespace std; #define ll long long int int main() { int t; cin>>t; while(t--) { ll k; cin>>k; cout<<192+(k-1)*250<<endl; } }
#include<bits/stdc++.h> using namespace std; #define ll long long int int main() { int t; cin>>t; while(t--) { ll k; cin>>k; cout<<192+(k-1)*250<<endl; } }
I am a Member Technical at D.E. Shaw India Pvt. Ltd. CodingWithArt is a blog where you find tricks and solutions to challenging coding and development problems. I aim to build a universal tech platform for every enthusiast out there.