Advertisement
Guest User

Untitled

a guest
Feb 14th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. long long i, i1, j, k, t, n, a, b, d;
  5. long double c;
  6. vector<long double> tp;
  7.  
  8. int main() {
  9. ios::sync_with_stdio(0);
  10. cin.tie(0);
  11.  
  12. ifstream cin("input.txt");
  13. ofstream cout("output.txt");
  14.  
  15. for (i = 0; i < 100; i++) {
  16. cin >> a;
  17. tp.clear();
  18. for (j = 0; j < a; j++) {
  19. cin >> c;
  20. tp.push_back(floor(c));
  21. }
  22. for (j = 0; j < tp.size(); j++) {
  23. cout << tp[j] << ' ';
  24. }
  25. cout << endl;
  26. }
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement