Commit Graph

21 Commits

Author SHA1 Message Date
b8c88b06cd refactor(test.cpp): 简化代码并实现蒙特卡洛模拟
移除地图生成相关代码,改为实现木棍折断问题的蒙特卡洛模拟
使用 C++11 随机数生成工具提高随机数质量
添加 IO 加速设置优化性能
2025-09-08 21:31:51 +08:00
a59dc23b13 feat: 实现随机地图生成器,包含房间创建和连接功能
添加地图生成器类,支持随机房间放置、走廊连接和房屋空间识别
使用洪水填充算法区分内外空间,确保生成合理的地图布局
2025-09-07 11:53:52 +08:00
17a58ec2aa docs: 更新README并清理测试代码
更新README添加超时优化方法,同时清理test.cpp中未使用的代码
2025-09-02 15:41:38 +08:00
9db115d255 refactor(9): 重构P3608.cpp并添加P6278.cpp
将P3608.cpp移动到9/1目录并扩展功能
新增P6278.cpp实现树状数组相关算法
修改test.cpp添加输入处理和异常检查
2025-09-01 15:26:27 +08:00
000e34da46 refactor(test.cpp): 替换cstdio为iostream并简化测试逻辑
将测试文件中的cstdio替换为iostream,并移除不必要的指针操作。
简化测试逻辑,直接测试位移操作并输出结果。
2025-08-31 11:12:40 +08:00
8b49a88aa9 update 2025-08-27 20:29:44 +08:00
797976b853 update 2025-08-25 17:25:22 +08:00
a8ea175f77 update 2025-08-25 14:34:28 +08:00
d9a9164d21 update 2025-08-25 11:27:39 +08:00
d704fe09d4 update 2025-08-25 11:25:01 +08:00
76df104990 update 2025-08-23 17:40:07 +08:00
8d2960a1ae update 2025-08-22 20:50:15 +08:00
34c1b54467 update 2025-08-18 20:38:47 +08:00
2f6d4e78c9 update 2025-08-15 20:40:12 +08:00
7f08957050 update 2025-08-15 11:15:51 +08:00
5b1e8bdc14 Add input and output files for multiple test cases in subproblem 1 to 5
- Created input and output files for subproblem 1 with a simple case.
- Added input and output files for subproblem 2 with a larger dataset.
- Introduced input and output files for subproblem 3 with varied values.
- Added extensive input and output files for subproblem 4 to test edge cases.
- Created input and output files for subproblem 5 with a comprehensive dataset.
2025-07-30 14:10:56 +08:00
393e17bd1f update 2025-07-20 15:59:04 +08:00
91264b4954 update 2025-07-20 09:35:49 +08:00
72952d982b update 2025-07-15 10:00:16 +08:00
66b06821d0 update 2025-05-17 11:15:57 +08:00
b1b0c75695 update 2025-05-03 10:35:33 +08:00