码迷,mamicode.com
首页 >  
搜索关键字:while break continue    ( 40024个结果
HDU 4462
状态压缩从讲完课开始写一直写到三点先是没有考虑结果可能为0(都能放置稻草人的空地)再是鬼使神差地把题目看错N*N是指点数而不是小格数最后莫名其妙的多出了个break完美的做大死现在整个人处于一种要疯癫的状态上代码#include using namespace std;int ABS(int a){...
分类:其他好文   时间:2014-07-22 00:16:36    阅读次数:259
To help the workers do their job easily
Scissor Lift tables are not just required for lifting the objects but also for the proper positioning of the material while working to prevent work re...
分类:其他好文   时间:2014-07-22 00:16:33    阅读次数:269
linux内核打印"BUG: scheduling while atomic
linux内核打印"BUG: scheduling while atomic"和"bad: scheduling from the idle thread"错误的时候,通常是在中断处理函数中调用了可以休眠的函数,如semaphore,mutex,sleep之类的可休眠的函数,而linux内核要求在中...
分类:系统相关   时间:2014-07-22 00:12:34    阅读次数:690
HDU 4462
状态压缩,K#include using namespace std;struct pos{ int x,y;}p[15];int f[55][55],r[15];int n,k;int abs(int a){ if(an)continue; for(int j=abs(i)-l;jn)contin...
分类:其他好文   时间:2014-07-22 00:08:34    阅读次数:232
求一个数的质因子
private static void prime(int i){ int j = 2; while(true){ while(i%j == 0 && i != j){ System.out.println("Prime num " + j); i = i/j; } if(i == j){ ...
分类:其他好文   时间:2014-07-21 23:30:20    阅读次数:426
450A - Jzzhu and Children 找规律也可以模拟
挺水的一道题,规律性很强,在数组中找出最大的数max,用max/m计算出倍数t,然后再把数组中的书都减去t*m,之后就把数组从后遍历找出第一个大于零的就行了 #include #include using namespace std; int main(){ // freopen("in.txt","r",stdin); int a[105],n,m; while(~sca...
分类:其他好文   时间:2014-07-21 23:29:23    阅读次数:312
P49
#include void fun(char *p,char *b) { int i,k=0; while(*p) { i=1; while(i<=3 && *p) { b[k]=*p; k++;p++;i++; } if(*p) { b[k++]=' '; } } b[k]='\0'; } void main() { char a[80],b...
分类:其他好文   时间:2014-07-21 23:29:22    阅读次数:235
hdu 1711 Number Sequence
直接套KMP模板 #include #include #include using namespace std; int s[1000005],w[10005],next[10005]; int b,c; void show() { int i,j; i=0; next[0]=-1; j=-1; while(i<c) { if(j=...
分类:其他好文   时间:2014-07-21 23:29:03    阅读次数:334
【Oracle】OGG error while loading shared libraries
[oracle@jp ogg]$ ./ggsci  ./ggsci: error while loading shared libraries: /u01/app/oracle/ogg/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied 关闭selinux,首先修改参数 [root@jp ...
分类:数据库   时间:2014-07-21 23:27:50    阅读次数:294
switch使用需要注意的几点
switch的语法格式: switch (整型或者字符串类型的变量) { case 变量可能值1: 分支一; break; case 变量可能值2: break; default: 最后分支; break; } 1、switch 后面括号里的参数类型 在1.7版本之前,这个参数必须是int类型或者可以隐式转换为int类型的变量(例如byte、...
分类:其他好文   时间:2014-07-21 15:16:16    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!