摘要: https://www.luogu.com.cn/problem/P1806 题目描述 路人甲准备跑n圈来锻炼自己的身体,他准备分多次(>1)跑完,每次都跑正整数圈,然后休息下再继续跑。 为了有效地提高自己的体能,他决定每次跑的圈数都必须比上次跑的多。 可以假设他刚开始跑了 0 圈,那么请问他可以有 阅读全文
posted @ 2023-03-29 21:43 高尔赛凡尔娟 阅读(244) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P1754 题目大意: 一共有2*n个人,n个人拿着50元的,n个人拿着100元的,但是卖票处一开始没有钱可以找。 问我们这些人怎样排列才可以完美的实现销售流程。 输入 #1 2 输出 #1 2 #include<bits/stdc+ 阅读全文
posted @ 2023-03-29 21:00 高尔赛凡尔娟 阅读(14) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P2986 输入 #1 5 1 1 0 0 2 1 3 1 2 3 2 3 4 3 4 5 3 输出 #1 15 推荐这位佬的思路以及题解 https://zhuanlan.zhihu.com/p/571948153 #include 阅读全文
posted @ 2023-03-29 16:58 高尔赛凡尔娟 阅读(31) 评论(0) 推荐(0) 编辑
摘要: ###洛谷题面 https://www.luogu.com.cn/problem/P1775 ###AcWing题面 https://www.acwing.com/problem/content/description/284/ #include<bits/stdc++.h> using names 阅读全文
posted @ 2023-03-29 16:05 高尔赛凡尔娟 阅读(108) 评论(0) 推荐(0) 编辑