上一页 1 2 3 4 5 6 7 ··· 26 下一页
摘要: D. Round Subset 老早写过了,但是边界考虑不太清楚 https://codeforces.com/problemset/problem/837/D #include <bits/stdc++.h> #define ll long long using namespace std; co 阅读全文
posted @ 2023-10-06 22:29 Sakana~ 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 目录结构: 注意添加: 创建app:python manage.py startapp app01 启动命令:python manage.py runserver 页面 创建链接 templates模板 如果要访问html: 将views的函数改为 def user_list (request): 阅读全文
posted @ 2023-10-05 10:17 Sakana~ 阅读(42) 评论(1) 推荐(0) 编辑
摘要: 快速入门 Python(随便乱记的笔记) https://docs.python.org/zh-cn/3/tutorial/index.html https://www.runoob.com/python/python-tutorial.html 输入 input() 函数 input直接读取一整行 阅读全文
posted @ 2023-09-26 19:40 Sakana~ 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 2022 China Collegiate Programming Contest (CCPC) Mianyang Onsite (2022CCPC绵阳)ACGHM https://codeforces.com/gym/104065 昨天女队vp了一下,赛时4题223罚时 A是一个dp,学妹已经写的 阅读全文
posted @ 2023-09-15 20:36 Sakana~ 阅读(107) 评论(0) 推荐(0) 编辑
摘要: # A - Non-Adjacent Flip https://atcoder.jp/contests/arc156/tasks/arc156_a ## 题意 给定一个01串,每次可以把不相邻的两个字符进行翻转,问最少要操作多少次使得全部变为0,无解输出-1。 ## 分析 记录 $1$ 的数量为 $ 阅读全文
posted @ 2023-08-24 17:18 Sakana~ 阅读(13) 评论(0) 推荐(0) 编辑
摘要: # 蓝桥杯省赛真题(砍树 整数删除 景区导游 翻转硬币) 四道比较难的题(题解是官方提供的) ## 砍树 (树上差分) https://www.lanqiao.cn/problems/3517/learning/ ### 解题思路 在这个问题中,我们需要找到一条边,砍掉它之后,所有给出的节点对 $( 阅读全文
posted @ 2023-08-22 18:01 Sakana~ 阅读(86) 评论(0) 推荐(0) 编辑
摘要: # 攻防演练 ## 来源 2021年中国大学生程序设计竞赛女生专场 https://codeforces.com/gym/103389/problem/B ## 题解 ![](https://img2023.cnblogs.com/blog/2803279/202308/2803279-202308 阅读全文
posted @ 2023-08-20 10:41 Sakana~ 阅读(30) 评论(0) 推荐(0) 编辑
摘要: # Codeforces Round 690 (Div. 3) https://codeforces.com/contest/1462 ## A. Favorite Sequence 按题意输出 ```CC #include using namespace std; const int N = 1e 阅读全文
posted @ 2023-08-06 17:30 Sakana~ 阅读(9) 评论(0) 推荐(0) 编辑
摘要: # Educational Codeforces Round 38 C - F https://codeforces.com/contest/938 今天写出了三题ovo ## C. Constructing Tests 多画几个图就能发现,对于 $n\times n$ 的正方形来说,要使得 $m\ 阅读全文
posted @ 2023-08-03 17:47 Sakana~ 阅读(29) 评论(0) 推荐(0) 编辑
摘要: # P2391 白雪皑皑(并查集) https://www.luogu.com.cn/problem/P2391 ## 题目背景 “柴门闻犬吠,风雪夜归人”,冬天,不期而至。千里冰封,万里雪飘。空中刮起了鸭毛大雪。雪花纷纷,降落人间。 美能量星球(pty 在 spore 上的一个殖民地)上的人们被这 阅读全文
posted @ 2023-08-03 10:46 Sakana~ 阅读(25) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 26 下一页