fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int t;
  6. cin>>t;
  7. long int gs,bs,hr,da;
  8. while(t--)
  9. {
  10. cin>>bs;
  11. if(bs<1500)
  12. gs=(bs+bs*0.1+bs*0.9);
  13. else
  14. gs=(bs+500+bs*0.98);
  15. cout<<fixed<<setprecision(2)<<gs<<endl;
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 4520KB
stdin
3
1203
10042
1312

stdout
2406
20383
2624