上一页 1 2 3 4 5 6 7 8 9 10 ··· 108 下一页

2024年6月18日

摘要: // 1090. 绿色通道.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <cstring> #include <deque> using na 阅读全文
posted @ 2024-06-18 10:43 itdef 阅读(3) 评论(0) 推荐(0) 编辑

2024年6月17日

摘要: // 1604:理想的正方形.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <deque> #include <algorithm> using namespace std; /* https://loj.a 阅读全文
posted @ 2024-06-17 13:08 itdef 阅读(3) 评论(0) 推荐(0) 编辑

2024年6月15日

摘要: // 旅行问题.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <deque> #include <cstring> using namespace std; /* http://ybt.ssoier.cn:8 阅读全文
posted @ 2024-06-15 20:35 itdef 阅读(4) 评论(0) 推荐(0) 编辑

2024年6月13日

摘要: https://www.acwing.com/problem/content/6/ #include <iostream> #include <memory.h> #include <deque> #include <stdio.h> using namespace std; /* https:// 阅读全文
posted @ 2024-06-13 16:49 itdef 阅读(5) 评论(0) 推荐(0) 编辑

2024年6月12日

摘要: #define _CRT_SECURE_NO_WARNINGS #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #include <vector> #include <array> using 阅读全文
posted @ 2024-06-12 15:01 itdef 阅读(2) 评论(0) 推荐(0) 编辑
摘要: https://www.acwing.com/problem/content/249/ 有几个古希腊书籍中包含了对传说中的亚特兰蒂斯岛的描述。 其中一些甚至包括岛屿部分地图。 但不幸的是,这些地图描述了亚特兰蒂斯的不同区域。 您的朋友 Bill 必须知道地图的总面积。 你自告奋勇写了一个计算这个总面 阅读全文
posted @ 2024-06-12 11:27 itdef 阅读(2) 评论(0) 推荐(0) 编辑

2024年6月7日

摘要: https://www.acwing.com/problem/content/4/ 有 N种物品和一个容量是 V的背包。 第 i 种物品最多有 si 件,每件体积是 vi,价值是 wi。 求解将哪些物品装入背包,可使物品体积总和不超过背包容量,且价值总和最大。 输出最大价值。 输入格式 第一行两个整 阅读全文
posted @ 2024-06-07 23:51 itdef 阅读(25) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/longest-increasing-subsequence/description/ 给你一个整数数组 nums ,找到其中最长严格递增子序列的长度。 子序列 是由数组派生而来的序列,删除(或不删除)数组中的元素而不改变其余元素的顺序。例如 阅读全文
posted @ 2024-06-07 16:44 itdef 阅读(6) 评论(0) 推荐(0) 编辑

2024年6月6日

摘要: https://www.acwing.com/problem/content/248/ 给定长度为 N 的数列 A,然后输入 M 行操作指令。 第一类指令形如 C l r d,表示把数列中第 l∼r 个数都加 d。 第二类指令形如 Q x,表示询问数列中第 x个数的值。 对于每个询问,输出一个整数表 阅读全文
posted @ 2024-06-06 15:56 itdef 阅读(4) 评论(0) 推荐(0) 编辑
摘要: https://www.acwing.com/problem/content/description/244/ 给定一个长度为 N 的数列 A ,以及 M 条指令,每条指令可能是以下两种之一: C l r d,表示把 A[l],A[l+1],…,A[r] 都加上 d。 Q l r,表示询问数列中第 阅读全文
posted @ 2024-06-06 14:29 itdef 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 108 下一页

导航