Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // TaskC.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <fstream>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- ifstream ifs("input.txt");
- int N;
- ifs >> N;
- cout << (N + 1) / 3 + 1;
- return 0;
- }
Add Comment
Please, Sign In to add comment