上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: Pots Time Limit: 1000MS Memory Limit: 65536K Description You are given two pots, having the volume of A and B liters respectively. The following opera 阅读全文
posted @ 2023-04-15 18:55 MarisaMagic 阅读(37) 评论(0) 推荐(0)
摘要: Shuffle'm Up Time Limit: 1000MS Memory Limit: 65536K Description A common pastime for poker players at a poker table is to shuffle stacks of chips. Sh 阅读全文
posted @ 2023-04-15 00:37 MarisaMagic 阅读(34) 评论(0) 推荐(0)
摘要: Prime Path Time Limit: 1000MS Memory Limit: 65536K Description The ministers of the cabinet were quite upset by the message from the Chief of Security 阅读全文
posted @ 2023-04-15 00:00 MarisaMagic 阅读(42) 评论(0) 推荐(0)
摘要: Find The Multiple Time Limit: 1000MS Memory Limit: 10000K Description Given a positive integer n, write a program to find out a nonzero multiple m of 阅读全文
posted @ 2023-04-14 23:22 MarisaMagic 阅读(97) 评论(0) 推荐(0)
摘要: Fliptile Time Limit: 2000MS Memory Limit: 65536K Description Farmer John knows that an intellectually satisfied cow is a happy cow who will give more 阅读全文
posted @ 2023-04-14 20:43 MarisaMagic 阅读(27) 评论(0) 推荐(0)
摘要: Catch That Cow Time Limit: 2000MS Memory Limit: 65536K Description Farmer John has been informed of the location of a fugitive cow and wants to catch 阅读全文
posted @ 2023-04-14 20:23 MarisaMagic 阅读(38) 评论(0) 推荐(0)
摘要: Dungeon Master Time Limit: 1000MS Memory Limit: 65536K Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon 阅读全文
posted @ 2023-04-14 20:10 MarisaMagic 阅读(37) 评论(0) 推荐(0)
摘要: 棋盘问题 Time Limit: 1000MS Memory Limit: 10000K Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行 阅读全文
posted @ 2023-04-14 19:53 MarisaMagic 阅读(73) 评论(0) 推荐(0)
摘要: 背包问题 01背包问题 static const int N = 1010; int dp[N][N], v[N], w[N], n, c; int main(){ cin >> n >> c; for(int i = 1; i <= n; i ++ ) cin >> v[i]  阅读全文
posted @ 2023-04-14 13:45 MarisaMagic 阅读(107) 评论(0) 推荐(0)
摘要: 树状数组 动态区间和询问 + 点修改 int lowbit(int x){ return x & -x; } void add(int x, int v){ for(int i = x; i <= n; i += lowbit(i)) tree[i] += v; } int query(int x) 阅读全文
posted @ 2023-04-14 13:27 MarisaMagic 阅读(40) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页