A. Salem and Sticks 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define N 1010 5 int n, a[N]; 6 7 int work(int x) 8 { 9 int res = 0; 10 f ...
分类:
其他好文 时间:
2019-01-31 17:08:37
阅读次数:
196
Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 ...
分类:
其他好文 时间:
2019-01-29 22:06:38
阅读次数:
170
题目链接:Salem and Sticks 题目原文 Salem gave you 𝑛n sticks with integer positive lengths 𝑎1,𝑎2,…,𝑎𝑛a1,a2,…,an. For every stick, you can change its lengt ...
分类:
其他好文 时间:
2019-01-27 21:33:58
阅读次数:
264
题目大意:有一堆小木棍,把它们接成相同长度的小木棍,问结果的小木棍的最小长度是多少,多组数据题解:$dfs$,各种剪枝。卡点:无C++ Code: ...
分类:
其他好文 时间:
2019-01-27 16:28:14
阅读次数:
168
A. Salem and Sticks 由于长度很小,所以直接暴力枚举最后的长度即可,取最小值即可。 #include<bits/stdc++.h> #define CLR(a,b) memset(a,b,sizeof(a)); using namespace std; typedef long l ...
分类:
其他好文 时间:
2019-01-27 14:42:58
阅读次数:
230
#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define INF 0x3... ...
分类:
其他好文 时间:
2019-01-22 13:18:49
阅读次数:
125
A. Salem and Sticks time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Salem and Sticks t ...
分类:
编程语言 时间:
2019-01-22 10:48:23
阅读次数:
150
A. Salem and Sticks time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Salem and Sticks t ...
分类:
其他好文 时间:
2019-01-20 23:31:59
阅读次数:
193
D. Cutting Out 题目链接:https://codeforces.com/contest/1077/problem/D 题意: 给你n个数,现在要你选k个数出来,并且能够从这n个数种选取尽量多的这k个数。 题解: 一开始想的贪心+模拟,然后写崩了... 其实这个题二分一下选几组就好了,因 ...
分类:
其他好文 时间:
2019-01-20 13:49:44
阅读次数:
134
Hadoop: 数据存储模块 数据计算模块 doug cutting //hadoop之父 //分布式文件系统GFS,可用于处理海量网页的存储 //分布式计算框架MAP REDUCE,可用于处理海量网页的索引计算问题 hadoop: GFS > NDFS(Nutch distributed file ...
分类:
其他好文 时间:
2019-01-08 21:00:21
阅读次数:
221