文章
7
标签
4
分类
1
首页
shy_robot_No8的个人主页
我的第一篇博客
返回首页
首页
我的第一篇博客
发表于
2026-01-10
|
更新于
2026-01-19
|
浏览量:
Ciallo
我要坚持打一场比赛写一场题解
个人主页
这是我的
b站
这是我的
github
这是我的
cf
愿你前行的道路有群星闪耀,愿你留下的足迹有百花绽放
文章作者:
shy_robot_No8
文章链接:
http://152.136.160.106/2026/01/10/%E6%88%91%E7%9A%84%E7%AC%AC%E4%B8%80%E7%AF%87%E5%8D%9A%E5%AE%A2/
版权声明:
本博客所有文章除特别声明外,均采用
CC BY-NC-SA 4.0
许可协议。转载请注明来源
shy_robot_No8的个人主页
!
test
上一篇
Codeforces Round 1072 (Div. 3)
A. Social Experiment题目链接 题意有n个人分成若干组,每个组只能是2或3个人,每个组可以选择两个实验的其中一个,求两个实验的人数差最少是多少 分析 当n<=3时,只能分成一组,所以人数差只能是n 当n>3时,如果n为偶数,那么必定可以使人数相等,输出0即可;如果n为奇数时,先把n-1个人分成相等的两份,多出来的一个一定可以融入某一方(2+1=3,3+1=2+2)。 代码12345678910111213141516void solve() { int n; cin>>n; if(n==2 || n==3){ cout<<n<<endl; return; } if(n%2==0){ cout<<0<<endl; return; } else{ cout<<1<<e...
下一篇
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
评论
shy_robot_No8
一名acmer(蒟蒻)
文章
7
标签
4
分类
1
Follow Me
公告
目录
1.
Ciallo
1.1.
个人主页
最新文章
2026-1-20题解
2026-01-20
Codeforces Round 1074 (Div. 4)
2026-01-19
Codeforces Round 1073 (Div. 2)
2026-01-18
2026.1.16题解
2026-01-16
Codeforces Round 1072 (Div. 3)
2026-01-13