rengetsu

MIDI_CodeJam.2.Painus_kelias

Apr 6th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4. int main()
  5. {
  6.     unsigned long long int a, b=1, z=1, j=2;
  7.     cin>>a;
  8.     while(b<a)
  9.     {
  10.         z+=1;
  11.         b=b*j;
  12.         j+=1;
  13.     }
  14.     cout<<z<<endl;
  15.     return 0;
  16. }
Add Comment
Please, Sign In to add comment