ABC336(A-C)

A

#include
using namespace std;
int main()
{
    int n;
    cin>>n;
    cout<<'L';
    for(int i=0;i

B

#include
using namespace std;
int main()
{
    int n;
    cin>>n;
    int num=0;
    while(n%2==0){
        num++;
        n/=2;
    }
    cout<

C

#include
#define ll long long
using namespace std;
int main()
{
    ll n;
    cin>>n;
    ll n0=n-1;
    string s="";
    if(n==1)cout<<"0"<0){
        if(n0%5==0){
            s="0"+s;
        }
        else if(n0%5==1){
            s="2"+s;
        }
        else if(n0%5==2){
            s="4"+s;
        }
        else if(n0%5==3){
            s="6"+s;
        }
        else if(n0%5==4){
            s="8"+s;
        }
        n0/=5;
    }
cout<

你可能感兴趣的:(c语言,c++,算法)