Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. #ifndef ONLINE_JUDGE
  9.     freopen ( "input.txt","rt",stdin ); //Read Input From File
  10.     freopen ("output.txt","wt",stdout); //Put Output In File
  11. #endif
  12.  
  13.  
  14.     /**
  15.     * your code here
  16.     */
  17.  
  18.  
  19. #ifndef ONLINE_JUDGE
  20.     fclose(stdin);  //Close Input File
  21.     fclose(stdout); //Close Output File
  22. #endif
  23.     return 0;
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement