1 条题解

  • 2
    @ 2023-11-26 10:46:15
    #include<iostream>
    #include<cstring>
    #include<string>
    using namespace std;
    string s[7] = {"Sun","Mon","Tues","Wednes","Thurs","Fri","Satur"};
    int main(){
        int a,b,res=1;
        cin >> a >> b;
        for(int i=1;i<=b;i++){
            res *= a;
            res = res%7; 
        }
        cout << s[res] << "day";
        return 0;
    }
    

    记录详情 - 浴谷 - HydroOJ

    • 1

    信息

    ID
    6886
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    (无)
    递交数
    44
    已通过
    18
    上传者