1 条题解

  • 0
    @ 2024-4-15 21:31:11
    #include <bits/stdc++.h> 
    using namespace std;
    #define ll long long
    #define s string
    #define c char
    #define co cout
    #define ci cin
    #define b bool
    #define re return
    ll n,m;
    string a[3]={"huang","lan","hong"};
    int main(){
        ios::sync_with_stdio(0);
        cin.tie(0);
        cout.tie(0);
        cin>>n>>m;
        cout<<a[n%(m*3)%3];
        return 0;
    }
    
    • 1

    【基础】第n盆花是什么颜色?

    信息

    ID
    310
    时间
    1000ms
    内存
    16MiB
    难度
    6
    标签
    递交数
    47
    已通过
    16
    上传者