SHARE
TWEET

Untitled

a guest Jul 7th, 2018 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <fstream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. typedef vector<int> vi;
  7.  
  8. ifstream fin("input.txt");
  9. ofstream fout("output.txt");
  10.  
  11. int main(){
  12.     int n, k, l;
  13.     fin >> n >> k >> l;
  14.  
  15.     vi v(n);
  16.     for(int &i : v)
  17.         fin >> i;
  18.  
  19.     fout << n << '\n';
  20.     for(int i : v)
  21.         fout << i << ' ';
  22. }
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