夏钺的博客

一条咸鱼

04 2020 档案

摘要:COORD 具体为 typedef struct COORD{ short X; short Y; } COORD,*PCOORD; 可以用来记录坐标. #include <iostream> #include <windows.h> using namespace std; int main(vo 阅读全文
posted @ 2020-04-23 16:58 Applied_Energetic 阅读(469) 评论(0) 推荐(0) 编辑
摘要:问题描述 m个猴子围成一圈 从1开始数,数到编号为n的猴子则剔除,继续从1开始数,依此直至只剩一只猴子即为大王。 #include <iostream> using namespace std; int main() { int m,n,ans=0; cin >> m >> n; for (int 阅读全文
posted @ 2020-04-22 17:50 Applied_Energetic 阅读(162) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示