6 条题解

  • 1
    @ 2024-9-14 21:45:42
    #include<bits/stdc++.h> 
    using namespace std; 
    string s; 
    string c[6]={"Guanyu","Zhangfei","Caocao","Diaochan","Zhugeliang","Simayi"}; 
    int main(){ 
       int a=0,b; 
       cin>>s; 
       for(int i=0;i<=s.size();i++){  
         a+=s[i]; 
         b=a%6; 
       } 
       cout<<c[b]; 
       return 0; 
    }

    信息

    ID
    2080
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    105
    已通过
    48
    上传者