acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 竞赛
  • 讨论
  • 团队
登录
注册
题目详情提交记录(0)
  • ok啊好吧

    #include <iostream> #include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; int x = a % 7; for(int i = 1; i < b; i++){ x = a % 7*x%7; } if(x % 7 == 0) cout << "Sunday"; if(x % 7 == 1) cout << "Monday"; if(x % 7 == 2) cout << "Tuesday"; if(x % 7 == 3) cout << "Wednesday"; if(x % 7 == 4) cout << "Thursday"; if(x % 7 == 5) cout << "Friday"; if(x % 7 == 6) cout << "Saturday"; return 0; }

    userId_undefined

    alrwool212

    模拟·模拟练习生出道萌新循环·循环打卡人快乐小狗秩序白银格式·格式排版员
    30阅读
    0回复
    1点赞
  • 题解

    userId_undefined

    zsy

    题解仙人时空双修者BUG超度大师秩序白银快乐小狗
    15阅读
    0回复
    1点赞
  • 题解 100% AC

    userId_undefined

    飞的智动

    题解仙人8月全勤卷王出道萌新时空双修者秩序白银快乐小狗
    7阅读
    0回复
    1点赞
  • 简简单单 的 题解

    userId_undefined

    54188((((官方正版挂壁猴

    出道萌新倔强青铜时空双修者格式·格式排版员模拟·模拟练习生位操作忍者
    5阅读
    0回复
    1点赞
  • 题解

    题解 #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; int x = a % 7; for(int i = 1; i < b; i++){ x = a % 7*x%7; } if(x % 7 == 0) cout << "Sunday"; if(x % 7 == 1) cout << "Monday"; if(x % 7 == 2) cout << "Tuesday"; if(x % 7 == 3) cout << "Wednesday"; if(x % 7 == 4) cout << "Thursday"; if(x % 7 == 5) cout << "Friday"; if(x % 7 == 6) cout << "Saturday"; return 0; }

    userId_undefined

    弜

    6阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页