fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int t,p,i;
  7. cin>>t;
  8. for(i=1;i<=t;i++){
  9. cin>>p;
  10. if(p<=10) cout<<"R"<<"\n";
  11. else if(p<=20&&p>10) cout<<"L"<<"\n";
  12. else cout<<p<<"\n";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 5304KB
stdin
5
10
1
20
99
19
stdout
R
R
L
99
L