摘要: #include <iostream> #include <cmath> #include <algorithm> using namespace std; int main() { int x1, y1, x2, y2; cin >> x1 >> y1 >> x2 >> y2; // 读取两个点的 阅读全文
posted @ 2025-10-23 23:02 bluepoet 阅读(3) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-22 23:17 bluepoet 阅读(4) 评论(0) 推荐(0)
摘要: // 乌龟与兔子进行赛跑,跑场是一个矩型跑道,跑道边可以随地进行休息。乌龟每分钟可以前进3米, // 兔子每分钟前进9米;兔子嫌乌龟跑得慢,觉得肯定能跑赢乌龟,于是,每跑10分钟回头看一下乌龟, // 若发现自己超过乌龟,就在路边休息,每次休息30分钟,否则继续跑10分钟;而乌龟非常努力, // 一 阅读全文
posted @ 2025-10-22 23:09 bluepoet 阅读(6) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-21 23:11 bluepoet 阅读(7) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-21 23:10 bluepoet 阅读(3) 评论(0) 推荐(0)
摘要: // 阿汪面前有两只盲盒,每只盒子打开都有两种可能:或者装了 X 克狗粮,或者是一只容量为 Y 克的狗粮储蓄盒。如果是狗粮,阿汪可以快乐地吃掉;如果是空储蓄盒,那就倒霉了,阿汪必须想办法找到狗粮把这只储蓄盒装满,自己还吃不到。 // 正当阿汪发愁不知道该怎么选的时候,铲屎官大手一挥:“小孩子才做选择 阅读全文
posted @ 2025-10-21 23:09 bluepoet 阅读(15) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-20 23:14 bluepoet 阅读(4) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-20 23:13 bluepoet 阅读(5) 评论(0) 推荐(0)
摘要: 另:大物实验是真的费时间 阅读全文
posted @ 2025-10-19 22:29 bluepoet 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-19 22:26 bluepoet 阅读(7) 评论(0) 推荐(0)