Advertisement
sivan_iut

Untitled

Apr 5th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. ///HELLO THERE~!
  2. ///CREATED BY MD SADMAN MEHEDI SIVAN(IUT CSE-SWE^19)
  3.  
  4. #include<bits/stdc++.h>
  5. #define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     fastio;
  11.  
  12.     int n;
  13.     cin>>n;
  14.  
  15.     vector<int>sivan= {1,2,3,4,5};
  16.  
  17.     for(int i=0; i<10000000; i++)
  18.     {
  19.         int x=sivan[i];
  20.         sivan.push_back(x);
  21.         sivan.push_back(x);
  22.     }
  23.  
  24.  
  25.     if(sivan[n-1]==1)
  26.         cout<<"Sheldon";
  27.     else if(sivan[n-1]==2)
  28.         cout<<"Leonard";
  29.     else if(sivan[n-1]==3)
  30.         cout<<"Penny";
  31.     else if(sivan[n-1]==4)
  32.         cout<<"Rajesh";
  33.     else if(sivan[n-1]==5)
  34.         cout<<"Howard";
  35.  
  36.    
  37.     return 0;
  38.  
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement