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