- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 小思维题-蚂蚁感冒——蓝桥杯
[蚂蚁感冒](https://www.acwing.com/problem/content/description/1213/)Description长100厘米的细长直杆子上有n只蚂蚁。它们的头有的朝左,有的朝右。每只蚂蚁都只能沿着杆子向前爬,速度是1厘米/秒。当两只蚂蚁碰面时,它们会同时掉头往相反的方向爬行。这些蚂蚁中,有1只蚂蚁感冒了。并且在和其它蚂蚁碰面时,会把感冒传染给碰到的蚂蚁。请你计算,当所有蚂蚁都爬离杆子时,有多少只蚂蚁患上了感冒。Input第一行输入一个整数n (1&l
2020-09-24 15:05:42 184
原创 Elven Postman 二叉树遍历问题
DescriptionElves are very peculiar creatures. As we all know, they can live for a very long time and their magical prowess are not something to be taken lightly. Also, they live on trees. However, there is something about them you may not know. Although d
2020-09-22 21:55:54 169
原创 拓扑排序-Kitchen Plates
J. Kitchen Platestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given 5 different sizes of kitchen plates. Each plate is marked with a letter A, B, C, D, or E. You are given 5 statements co
2020-09-22 20:33:36 220
原创 2020中石油组队训练第八场记录
问题 D: Eeny Meeny时间限制: 2 Sec 内存限制: 128 MB题目描述“Eeny meeny miny moe” is a well-known nursery rhyme in English, used (among other things) by kids to “randomly” select members of a team. It exists in many variations, one of which goes like this:Eeny, meeny
2020-09-13 21:27:49 544
原创 The Famous ICPC Team Again
时间限制: 5 Sec 内存限制: 128 MB题目描述When Mr. B, Mr. G and Mr. M were preparing for the 2012 ACM-ICPC World Final Contest, Mr. B had collected a large set of contest problems for their daily training. When they decided to take training, Mr. B would choose one of
2020-09-08 19:31:15 152
原创 Contest Print Server组队第四场J
问题 J:Contest Print Server时间限制: 1 Sec 内存限制: 128 MB题目描述In ACM/ICPC on-site contests ,3 students share 1 computer,so you can print your source code any time. Here you need to write a contest print server to handle all the requests.输入In the first line th
2020-09-06 07:45:49 142
一份(不太)简短的 LATEX 2ε 介绍
2020-10-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人