【OJ比赛日历】快周末了,不来一场比赛吗? #08.12-08.18 #14场

CompHub[1] 实时聚合多平台的数据类(Kaggle、天池…)和OJ类(Leetcode、牛客…)比赛。本账号会推送最新的比赛消息,欢迎关注!


以下信息仅供参考,以比赛官网为准

目录

2023-08-12(周六) #4场比赛

【LGR-154-Div.3】洛谷基础赛 #2 & qw Round -1
🖥 洛谷 · ⚖️ IOI赛制
🥳 14:00开始 · ⏳ 时长4h
#Rated #官方比赛
https://www.luogu.org/contest/123900


第 116 场周赛
🖥 AcWing · ⚖️ ACM赛制
🥳 19:00开始 · ⏳ 时长1h 15min
https://www.acwing.com/activity/content/3405/


AtCoder Beginner Contest 314
🖥 AtCoder · ⚖️ ACM赛制
🥳 20:00开始 · ⏳ 时长1h 40min
https://atcoder.jp/contests/abc314


Codeforces Round 892 (Div. 2)
🖥 Codeforces · ⚖️ ACM赛制
🥳 22:35开始 · ⏳ 时长2h
https://codeforces.com/contests?complete=true


2023-08-13(周日) #5场比赛

第 358 场周赛
🖥 Leetcode · ⚖️ ACM赛制
🥳 10:30开始 · ⏳ 时长1h 30min
https://leetcode.cn/contest/weekly-contest-358


【LGR-151-Div.2】洛谷 8 月月赛 II & YsOI2023
🖥 洛谷 · ⚖️ IOI赛制
🥳 14:00开始 · ⏳ 时长4h
#Rated #官方比赛
https://www.luogu.org/contest/122758


【LGR-151-Div.1】洛谷 8 月月赛 II & YsOI2023
🖥 洛谷 · ⚖️ IOI赛制
🥳 14:00开始 · ⏳ 时长4h
#Rated #官方比赛
https://www.luogu.org/contest/122757


牛客周赛 Round 7
🖥 牛客(Nowcoder) · ⚖️ IOI赛制
🥳 19:00开始 · ⏳ 时长1h 30min
#牛客系列赛
https://ac.nowcoder.com/acm/contest/63091


AtCoder Grand Contest 064
🖥 AtCoder · ⚖️ ACM赛制
🥳 20:00开始 · ⏳ 时长3h
https://atcoder.jp/contests/agc064


2023-08-14(周一) #3场比赛

2023牛客暑期多校训练营9
🖥 牛客(Nowcoder) · ⚖️ ACM赛制
🥳 12:00开始 · ⏳ 时长5h
#提高训练营 #牛客系列赛
https://ac.nowcoder.com/acm/contest/57363


【LGR-(-21) 】SCP 2023 第一轮(初赛 J 组)模拟
🖥 洛谷 · ⚖️ OI赛制
🥳 14:30开始 · ⏳ 时长2h
#Rated #官方比赛
https://www.luogu.org/contest/121699


【LGR-(-21) 】SCP 2023 第一轮(初赛 S 组)模拟
🖥 洛谷 · ⚖️ OI赛制
🥳 14:30开始 · ⏳ 时长2h
#Rated #官方比赛
https://www.luogu.org/contest/121700


2023-08-15(周二) #无比赛

2023-08-16(周三) #1场比赛

Starters 103
🖥 Codechef · ⚖️ IOI赛制
🥳 22:30开始 · ⏳ 时长2h
https://www.codechef.com/START103


2023-08-17(周四) #1场比赛

Educational Codeforces Round 153 (Rated for Div. 2)
🖥 Codeforces · ⚖️ ACM赛制
🥳 22:35开始 · ⏳ 时长2h
https://codeforces.com/contests?complete=true


2023-08-18(周五) #无比赛

参考资料

[1] 

CompHub: https://comphub.notion.site/CompHub-c353e310c8f84846ace87a13221637e8

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
循环比赛日程表是一种常见的算法问题,可以使用递归或迭代的方式来生成日程表。下面是一个使用C++编写的循环比赛日程表的示例代码: ```cpp #include <iostream> #include <vector> using namespace std; void generateSchedule(int teams) { if (teams % 2 != 0) { teams++; // 如果队伍数为奇数,添加一个虚拟队伍 } int rounds = teams - 1; // 总轮次数 int matches = teams / 2; // 每轮的比赛场次 vector<vector<int>> schedule(rounds, vector<int>(matches)); // 初始化第一轮的比赛安排 for (int i = 0; i < matches; i++) { schedule[0][i] = i + 1; } // 生成后续轮次的比赛安排 for (int round = 1; round < rounds; round++) { for (int match = 0; match < matches; match++) { int team1 = schedule[round - 1][match]; int team2; // 计算每个队伍的对手 if (match == 0) { team2 = teams - 1; } else { team2 = schedule[round - 1][match - 1]; } // 考虑虚拟队伍的情况 if (team1 == teams - 1 || team2 == teams - 1) { team1 = (team1 + 1) % (teams - 1); team2 = (team2 + 1) % (teams - 1); } schedule[round][match] = team2; } } // 打印比赛日程表 for (int round = 0; round < rounds; round++) { cout << "Round " << round + 1 << ": "; for (int match = 0; match < matches; match++) { cout << schedule[round][match] << " vs " << teams - schedule[round][match] - 1 << " "; } cout << endl; } } int main() { int teams; cout << "Enter the number of teams: "; cin >> teams; generateSchedule(teams); return 0; } ``` 这段代码中,我们首先根据输入的队伍数计算总轮次数和每轮的比赛场次。然后,使用一个二维向量 `schedule` 来存储比赛安排。我们从第一轮开始,逐轮生成比赛对阵,并将结果存储在 `schedule` 中。最后,打印出比赛日程表。 希望这个示例代码对你有帮助!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值