- 博客(2)
- 收藏
- 关注
原创 ACM集训STL(1)学习杂记(二)——E题~H题
STL(1)(E)Online Judge很简单的一道题,再看自己的代码会发现一些没必要的地方。Online JudgeIgnatius is building an Online Judge, now he has worked out all the problems except the Judge System. The system has to read data from correct output file and user's result file, then the
2020-12-28 10:34:08 303
原创 ACM集训STL(1)学习杂记(一)——A题~D题
STL(1)(A)圆桌问题应该就是道简单题,目的是熟悉stl容器vector。圆桌问题圆桌上围坐着2n个人。其中n个人是好人,另外n个人是坏人。如果从第一个人开始数数,数到第m个人,则立即处死该人;然后从被处死的人之后开始数数,再将数到的第m个人处死……依此方法不断处死围坐在圆桌上的人。试问预先应如何安排这些好人与坏人的座位,能使得在处死n个人之后,圆桌上围坐的剩余的n个人全是好人。Input多组数据,每组数据输入:好人和坏人的人数n(<=32767)、步长m(<=32
2020-12-13 23:52:46 292
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人