【OJ比赛日历】快周末了,不来一场比赛吗? #06.23-06.29 #13场

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


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

目录

2023-06-23(周五) #5场比赛

计蒜客信息学 6 月提高组模拟赛
🖥 计蒜客 · ⚖️ IOI赛制
🥳 13:00开始 · ⏳ 时长3h
https://www.jisuanke.com/contest/35485


计蒜客信息学 6 月普及组模拟赛
🖥 计蒜客 · ⚖️ IOI赛制
🥳 13:00开始 · ⏳ 时长2h
https://www.jisuanke.com/contest/35484


计蒜客信息学 6 月编程新手赛
🖥 计蒜客 · ⚖️ IOI赛制
🥳 13:00开始 · ⏳ 时长2h
https://www.jisuanke.com/contest/35483


NICA 校际交流 #2(同步赛)
🖥 洛谷 · ⚖️ ACM赛制
🥳 14:00开始 · ⏳ 时长3h
#Rated #团队公开赛
https://www.luogu.org/contest/114030


牛客练习赛112
🖥 牛客(Nowcoder) · ⚖️ ACM赛制
🥳 19:00开始 · ⏳ 时长2h 30min
#牛客系列赛 #牛客练习赛
https://ac.nowcoder.com/acm/contest/59717


2023-06-24(周六) #5场比赛

Not Another Programming Contest #1
🖥 洛谷 · ⚖️ IOI赛制
🥳 13:00开始 · ⏳ 时长5h
#个人公开赛
https://www.luogu.org/contest/107029


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


Tokio Marine & Nichido Fire Insurance Programming Contest 2023(AtCoder Beginner Contest 307)
🖥 AtCoder · ⚖️ ACM赛制
🥳 20:00开始 · ⏳ 时长1h 40min
https://atcoder.jp/contests/abc307


CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!)
🖥 Codeforces · ⚖️ ACM赛制
🥳 22:05开始 · ⏳ 时长3h
https://codeforces.com/contestRegistration/1842


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


2023-06-25(周日) #2场比赛

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


TOYOTA Programming Contest 2023 Summer(AtCoder Heuristic Contest 021)
🖥 AtCoder · ⚖️ ACM赛制
🥳 14:00开始 · ⏳ 时长4h
https://atcoder.jp/contests/ahc021


2023-06-26(周一) #无比赛

2023-06-27(周二) #无比赛

2023-06-28(周三) #1场比赛

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


2023-06-29(周四) #无比赛

参考资料

[1] 

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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 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、付费专栏及课程。

余额充值