码迷,mamicode.com
首页 >  
搜索关键字:cutting sticks    ( 605个结果
Codeforces Round #533 (Div. 2) Solution
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
1132 Cut Integer (20 分)
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-萨鲁曼的棍子 CodeForce#1105A 暴力
题目链接: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
[UVA307]小木棍 Sticks
题目大意:有一堆小木棍,把它们接成相同长度的小木棍,问结果的小木棍的最小长度是多少,多组数据题解:$dfs$,各种剪枝。卡点:无C++ Code: ...
分类:其他好文   时间:2019-01-27 16:28:14    阅读次数:168
Codeforces Round #533 (Div. 2)
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
Cutting Codeforces Round #493 (Div. 2)
#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
codeforces_A. Salem and Sticks_数组/暴力
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
Codeforces Round #533 (Div. 2) A. Salem and Sticks(暴力)
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
Codeforces Round #521 (Div. 3) D. Cutting Out
D. Cutting Out 题目链接:https://codeforces.com/contest/1077/problem/D 题意: 给你n个数,现在要你选k个数出来,并且能够从这n个数种选取尽量多的这k个数。 题解: 一开始想的贪心+模拟,然后写崩了... 其实这个题二分一下选几组就好了,因 ...
分类:其他好文   时间:2019-01-20 13:49:44    阅读次数:134
05.伪分布式、分布式搭建
Hadoop: 数据存储模块 数据计算模块 doug cutting //hadoop之父 //分布式文件系统GFS,可用于处理海量网页的存储 //分布式计算框架MAP REDUCE,可用于处理海量网页的索引计算问题 hadoop: GFS > NDFS(Nutch distributed file ...
分类:其他好文   时间:2019-01-08 21:00:21    阅读次数:221
605条   上一页 1 ... 7 8 9 10 11 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!