Advertisement
tuki2501

fcb028_lagrange.cpp

Nov 9th, 2021
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.   int n; cin >> n;
  6.   if (n == 1) cout << 1 << '\n';
  7.   else if (n == 2) cout << 2 << '\n';
  8.   else if (n <= 6) cout << 3 << '\n';
  9.   else cout << 4 << '\n';
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement