SHARE
TWEET

Untitled

a guest Feb 14th, 2020 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top