#include<iostream>
using namespace std;
int main()
{
int T,k;
int arr[] = {192,442,692,942};
cin >> T;
while(T--)
{
cin >> k;
k--;
cout << 1000*(k/4) + arr[k%4] << endl;
}
return 0;
}
Can anyone help me out with this? I'm quite sure my algo is correct