随笔分类 -  杭电

摘要:好久没打过杭电了,想着这周周五下午的课已经结课了,就来打一打。开局写前两道题结果这两题数据全是错的,害的我差点怀疑人生。 1001. 拼图游戏 题意:一个\(n\times m\)的矩阵,只包含\([1, k]\)的数。求有多少\((x, y)\)满足\((1, 1)\)到\((x, y)\)这个子 阅读全文
posted @ 2025-04-25 22:46 maburb 阅读(292) 评论(0) 推荐(0)
摘要:1001. 签到 点击查看代码 void solve() { int n; std::string s; std::cin >> n >> s; int ans = -1; for (int i = 1; i <= n; ++ i) { std::string t; std::cin >> t; i 阅读全文
posted @ 2025-03-07 23:00 maburb 阅读(1213) 评论(2) 推荐(3)