Codeforces 82A - Double Cola solution
///La ilaha illellahu muhammadur rasulullah
///******Bismillahir-Rahmanir-Rahim******///
///AH Tonmoy
///Department of CSE,23rd batch
///Islamic University,Bangladesh
- #include <bits/stdc++.h>
- using namespace std;
- string s[] = {"Sheldon", "Leonard", "Penny", "Rajesh", "Howard"};
- int main()
- {
- int n;
- cin>>n;
- n--;
- while(n>=5)
- {
- n=n-5;
- n/=2;
- }
- cout<<s[n]<<endl;
- }
No comments