andruhovski

TaskC-2016

Apr 28th, 2016
1,258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. // TaskC.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <fstream>
  7.  
  8. using namespace std;
  9.  
  10. int _tmain(int argc, _TCHAR* argv[])
  11. {
  12.     ifstream ifs("input.txt");
  13.     int N;
  14.     ifs >> N;
  15.     cout << (N + 1) / 3 + 1;
  16.  
  17.     return 0;
  18. }
Add Comment
Please, Sign In to add comment