码迷,mamicode.com
首页 >  
搜索关键字:for while until    ( 29426个结果
ML | k-means
what's xxxk-means clustering tends to find clusters of comparable spatial extent, while the expectation-maximization mechanism allows clusters to have...
分类:其他好文   时间:2014-07-20 09:17:04    阅读次数:227
uva 232 - Crossword Answers
代码又是挺乱的,时间太紧没空整理,思路也不好~但能AC…… 看不清楚可以留言,或者加qq一起探讨 #include #include #include using namespace std; char s[11][11]; int num[11][11]; int vis[11][11]; int main() { int r,c; int t=0; while(sc...
分类:其他好文   时间:2014-07-19 23:38:39    阅读次数:313
0 1背包模板
# include # include # include # define max(x,y) x>y?x:y; int v[1001];//价值 int w[1001];//重量 int dp[1001][1001]; int main() { int n,m; while(scanf("%d%d",&m,&n)!=EOF) { memset(dp,...
分类:其他好文   时间:2014-07-19 23:38:19    阅读次数:309
欧几里得(模板)
int gcd(int n,int m)//n>m { //最大公约数 int r; while(m) { r = n%m; n = m; m = r; } return n; } int kgcd(int a,int b) { if(!a) return b; if(!b) retu...
分类:其他好文   时间:2014-07-19 23:37:19    阅读次数:309
python中的yield
例如这个函数 def fab(max): n, a, b = 0, 0, 1 while n < max: yield b # print b a, b = b, a + b n = n + 1 简单地讲,yield 的...
分类:编程语言   时间:2014-07-19 23:15:12    阅读次数:247
C++中如何split字符串(转)
#include #include #include using namespace std;int main(){ string s("Somewhere down the road"); istringstream iss(s); while (iss) ...
分类:编程语言   时间:2014-07-19 23:13:54    阅读次数:248
Box Game
There are two identical boxes. One of them contains n balls, while the other box contains one ball. Alice and Bob invented a game with the boxes and b...
分类:其他好文   时间:2014-07-19 14:25:51    阅读次数:228
CSU-ACM2014暑假集训基础组训练赛(1) 解题报告
?Problem A HDU 4450 水题,签到题水题。。没啥好说的。给大家签到用的。 1 #include 2 int main(){ 3 int n,a,ans; 4 while(scanf("%d",&n),n){ 5 ans = 0; 6 ...
分类:其他好文   时间:2014-07-19 13:33:32    阅读次数:300
NYOJ 293 Sticks
Sticks时间限制:3000ms | 内存限制:65535KB难度:5描述George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he...
分类:其他好文   时间:2014-07-19 11:27:30    阅读次数:264
定时器UNIX crontab vs Quartz
Using cron seems to add another entry point into your application, while Quartz would integrate into it. So you would be forced to deal with some inter-process communication if you wanted to pass...
分类:其他好文   时间:2014-07-19 11:11:44    阅读次数:373
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!