3 条题解

  • 1
    @ 2026-8-14 17:06:52

    小白代码

    #include <iostream>
    using namespace std;
    int main()
    {
    	short t, p; 
    	cin >> t;
    	while(t--){
    		cin >> p;
    		if(p <= 10)	cout<<"R"<<endl;
    		else if(p > 10 && p <= 20)	cout << "L" << endl;
    		else	cout << p << endl;	
    	}
    
    	return 0;
    }
    
    • 0
      @ 2026-10-11 15:55:01

      #include <bits/stdc++.h> using namespace std; const int N = 1e5+10; const int INF = 0x3f3f3f3f; int t,p; int main() { cin>>t; while(t--){ cin>>p; if(p<=10) cout<<"R"<<endl; else if(p>10&&p<=20) cout<<"L"<<endl; else cout<<p<<endl; }

      return 0;
      

      }

      • 0
        @ 2026-1-10 23:27:05
        #include <bits/stdc++.h>
        using namespace std;
        const int N = 1e5+10;
        const int INF = 0x3f3f3f3f;
        int t,p; 
        int main()
        {
        	cin>>t;
        	while(t--){
        	cin>>p;
        	if(p<=10)
        	cout<<"R"<<endl;
        	else if(p>10&&p<=20)
        	cout<<"L"<<endl;
        	else
        	cout<<p<<endl;	
        	}
        
        	return 0;
        }
        
        
        
        
        • 1

        信息

        ID
        3425
        时间
        1000ms
        内存
        256MiB
        难度
        5
        标签
        递交数
        128
        已通过
        46
        上传者