码迷,mamicode.com
首页 >  
搜索关键字:break continue    ( 13544个结果)
[Leetcode][JAVA] Word Break II
Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such possibl...
分类:编程语言   时间:2014-10-19 11:30:36    阅读次数:213
Training的第三十三天(回校的第七周)
在这近一个月的时间里,在C++的课堂上我们学习了C++独有的控制格式的setw()这些语句,还学习了while;do-while;for;这三大循环;switch 这个分支结构;学习了循环当然也少不了跳出循环的break,continue语句...
分类:其他好文   时间:2014-10-19 01:37:46    阅读次数:202
POJ 3094 Quicksum(简单题)
【题意简述】:题意很简单。看例子就能理解 【分析】:略。字符串的读取操作。 // 200K 0Ms #include using namespace std; int main() { char a[256]; while(1) { int sum = 0; gets(a); if(strcmp(a,"#")==0) break; int len = strlen(a)...
分类:其他好文   时间:2014-10-18 22:25:18    阅读次数:200
java关键字 (jdk6)
Abstract 抽象的 一个Java语言中的关键字,用在类的声明中来指明一个类是不能被实例化的,但是可以被其它类继承。一个抽象类可以使用抽象方法,抽象方法不需要实现,但是需要在子类中被实现。break 一个Java的关键字,用来改变程序执行流程,立刻从当前语句的下一句开始执行从。如果后面跟有一个标...
分类:编程语言   时间:2014-10-18 13:52:13    阅读次数:198
【学习笔记】Python网络编程(三)利用socket模拟ssh协议
上代码,server端:importsocket,os s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) host=‘‘ port=1051 s.bind((host,port)) s.listen(4) while1: conn,addr=s.accept() while1: data=conn.recv(1024) ifnotdata:break os.system(data) conn.sendall(data.upper())#把字..
分类:编程语言   时间:2014-10-18 03:08:52    阅读次数:212
HDU 2167 Pebbles
题目大意:有个N*N( 3#include #include #define rep(i,n) for(int i=0;i>1))continue; if(s[j]&(s[k]<<1))continue; dp[i][j]=max(dp[i][j],dp[...
分类:其他好文   时间:2014-10-17 21:50:42    阅读次数:276
hdu 4771 Stealing Harry Potter's Precious (BFS+状压)
题意:n*m的迷宫,有一些格能走(“.”),有一些格不能走(“#”)。起始点为“@”。有K个物体。(K q; mem(dp,-1); int s=0; rep(i,1,k) if(px[i]==sx&&py[i]==sy) s=(1=n||ny>=m) continue; ...
分类:其他好文   时间:2014-10-17 21:41:58    阅读次数:161
html 固定table td 宽度
<td> <div style="width:100px;word-wrap:break-word;" > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx </div>? </td>?...
分类:Web程序   时间:2014-10-17 17:06:02    阅读次数:153
[Java 8] 函数式编程简介
思维方式的转变 以从一个城市集合中寻找是否存在Chicago为例: 习惯的方式 boolean found = false; for(String city : cities) { if(city.equals("Chicago")) { found = true; break; } } System.out.println("Fo...
分类:编程语言   时间:2014-10-17 15:39:38    阅读次数:252
堆排序的一种实现
1 void HeapAdjust(int a[],int s,int m) 2 { 3 int temp = a[s]; 4 5 for(int j=2*s;j=a[j]) //如果只写大于而不写等于会出现问题,10 break;11 ...
分类:编程语言   时间:2014-10-17 15:01:03    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!