Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#include<bits/stdc++.h>
- #include<iostream>
- #include<fstream>
- #include<cmath>
- #define long long long
- #define nln '\n'
- const long N = 1e8+10;
- using namespace std;
- // Global variables: f1, f2, n
- fstream f1, f2;
- inline void openf()
- {
- f1.open("lagrange.inp", ios:: in);
- f2.open("lagrange.out", ios:: out);
- }
- inline void closef()
- {
- f1.close();
- f2.close();
- }
- long n;
- void data()
- {
- f1.tie(0)->sync_with_stdio(0);
- f2.tie(0)->sync_with_stdio(0);
- cin.tie(0)->sync_with_stdio(0);
- cin >> n;
- }
- void process()
- {
- }
- void view()
- {
- if (1 <= n && n <= 3)
- cout << n << nln;
- else
- if (n >= 4 && n <= 6)
- cout << 3 << nln;
- else
- cout << 4 << nln;
- }
- int main()
- {
- openf();
- data();
- process();
- view();
- closef();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment