➤ Problem Link : CRZYSMKR
👉 Hint : edit please
✅ C++ Solution :
#include<bits/stdc++.h> using namespace std; #define ll long long int int main() { int t; cin>>t; while(t--) { ll n; cin>>n; ll a=(30*n)%11; for(ll i=a;i<a+11;i++) { if(i%11==0) { cout<<i-a<<endl; break; } } } }
Thank you for your patience reading. If you enjoyed this post, I’d be very grateful if you’d help it spread by emailing it to a friend, or sharing it on Whatsapp or Facebook.
😇Happy Learning!!