学习来自 这主要是贡献那里不会算,很难联想到爆搜。。#include <bits/stdc++.h>using namespace std;#define ll long longll a[30][30],d[30];ll ans;int n;vector <int> vec;void dfs(int pos,ll sum){ ...
转载
2021-09-06 14:26:06
59阅读
学习来自 这主要是贡献那里不会算,很难联想到爆搜。
转载
2022-03-13 11:34:58
82阅读
题目分析拿到题目一看,立即想起了马走日,然而不是 写到
原创
2022-10-28 10:08:34
123阅读
http://acm.hdu.edu.cn/showproblem.php?pid=5355 Problem Description There are m soda and today is their birthday. The 1-st soda has prepared n cakes wi
转载
2018-02-25 19:34:00
59阅读
2评论
using namespace std;
typedef pair<double, double> P;
const int maxn = 10;
const double eps = 1e-6;
int dcmp(double x) {
if (fabs(x) < eps) retu...
原创
2022-08-17 16:43:03
31阅读
2474 Balloons in a Box 题目连接: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=99999999&page=show_problem&category=36&problem
原创
2021-07-16 11:43:43
134阅读
符号三角形 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1899 Accepted Submission(s): 977 Problem De
转载
2017-03-13 20:15:00
75阅读
2评论
链接
Solve this interesting problem
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 511 Accepted Submission(s): 114
Problem Desc
原创
2021-08-13 13:59:49
103阅读
Problem DescriptionYou are givenNsets.Thei−th set hasAinumbers.You should divide the sets intoLparts.And each part should have at least one number in ...
转载
2016-01-26 02:08:00
43阅读
原题Problem DescriptionIn Chinese Chess, there is one kind of powerful chessmen che
原创
2022-10-28 10:09:23
73阅读
You are playing some computer game. One of its level
原创
2022-08-10 11:27:14
61阅读
样例输入4 16样例输出3 1 2 4解题思路:一看到这道题,看不出有啥思路,看到
原创
2023-05-17 18:39:00
64阅读
题目链接:点击打开链接题意:给定m( 3构造一个m位n进制的数。使得这个数*2, *3, *i ( 2如:m = 6, n = 10;则 这个数可能为 1428572*142857 = 2857143*142857 = 4285714*142857 = 5714285*142857 = 7142856*142857 = 857142输出:
原创
2021-08-13 13:56:44
136阅读
本题数据范围很小,因此直接根据右侧爆搜左侧选择哪个,再加上一个可行性剪枝就行 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pll; const int inf=0x3
转载
2020-08-17 15:51:00
129阅读
2评论
原题Problem DescriptionThere is a mountain near yifenfei’s hometown. On the moun
原创
2022-10-28 10:09:30
78阅读
Description 给定正整数n和k,问能否将n分解为k个不同正整数的乘积 Input 第一行一个数T(T<=4000)表示测试组数 接下来T行每行两个数n(n<=10^9),k(k<=20) Output 输出T行,若可以被分解,输出”TAK”否则输出”NIE” Sample Input 3
转载
2017-12-29 10:07:00
99阅读
2评论
http://acm.hdu.edu.cn/showproblem.php?pid=4403 题意: 给出一串数字,在里面添加一个等号和多个+号,使得等式成立,问有多少种不同的式子。 思路: 数据量比较小,直接dfs爆搜答案即可。
转载
2017-12-03 16:53:00
44阅读
2评论
4325: NOIP2015 斗地主Time Limit: 30 Sec Memory Limit: 1024 MBSubmit: 867 Solved: 588[Submit][
原创
2023-07-07 13:32:47
21阅读
题意 给定一个 $n \times m$ 的格子,每个格子被染成了黑色或白色。现在要用 $1 \times 2$ 的砖块覆盖这些格子,要求块与块之间互不重叠,且覆盖了所有白色的格子,但不覆盖任意黑色格子。求一共有多少种覆盖方法。结果对 $M$ 取余。($1 \leq n\leq 15, 1 \leq
转载
2019-09-15 10:36:00
40阅读
2评论
USACO ORZTime Limit: 5000/1500 MS (Java/Others) Memory Limit: 32768/32768 K Problem DescriptionLike everyone, c
原创
2023-04-20 21:36:10
60阅读