码迷,mamicode.com
首页 >  
搜索关键字:nyoj 676 小明的求助    ( 1823个结果
nyoj 983 ——首尾相连数组的最大子数组和——————【最大子串和变形】
首尾相连数组的最大子数组和时间限制:1000ms | 内存限制:65535KB难度:4描述给定一个由N个整数元素组成的数组arr,数组中有正数也有负数,这个数组不是一般的数组,其首尾是相连的。数组中一个或多个连续元素可以组成一个子数组,其中存在这样的子数组arr[i],…arr[n-1],arr[0...
分类:编程语言   时间:2015-05-30 12:11:48    阅读次数:162
NYOJ_51 6174问题
6174是一个神奇的数字...
分类:其他好文   时间:2015-05-29 15:54:58    阅读次数:100
最少乘法次数 NYOJ 46
1 #include//最少乘法次数(46) 2 int main() 3 { 4 int i,x,m; 5 scanf("%d",&x); 6 while(x--){ 7 scanf("%d",&m); 8 i=0; 9 ...
分类:其他好文   时间:2015-05-29 08:39:00    阅读次数:165
C小加之随机数 NYOJ 255
1 #include//C小加之随机数(255) 2 #include 3 int main() 4 { 5 int x,y,i,a[110],j,t,p,b[110],cnt; 6 scanf("%d",&x); 7 while(x--){ 8 scan...
分类:其他好文   时间:2015-05-29 08:38:28    阅读次数:181
盗梦空间 NYOJ 125
1 #include//盗梦空间(125) 2 #include 3 int main() 4 { 5 int x,y,t=1; 6 char s[10]; 7 double m,res=0.0; 8 scanf("%d",&x); 9 while(x--...
分类:其他好文   时间:2015-05-29 08:38:24    阅读次数:165
mdd的烦恼 NYOJ 333
1 #include//mdd的烦恼(333) 2 #include 3 int main() 4 { 5 long long n,i,res; 6 while(scanf("%lld",&n)!=EOF){ 7 res=n; 8 for(i=2;...
分类:其他好文   时间:2015-05-29 08:37:03    阅读次数:187
高数 NYOJ 1043
1 #include//高数(1043) 2 #include 3 double f(double n) 4 { 5 double t; 6 if(n>=0&&n2&&n<=5)t=f(2)+0.25*pow(n,4)-2.0/3*pow(n,3)-0.5*pow(n,2)+2*...
分类:其他好文   时间:2015-05-29 08:36:56    阅读次数:261
快速查找素数 NYOJ 187
1 #include//快速查找素数(187) 2 int a[2000001]; 3 int main() 4 { 5 int m,i,j; 6 for(i=2;i<=2000000;i++){ 7 if(a[i]==0){ 8 for(...
分类:其他好文   时间:2015-05-29 08:36:45    阅读次数:101
街区最短问题 NYOJ 7
1 #include//街区最短问题(7) 2 #include 3 #include 4 int cmp(const void *a,const void *b){ 5 return *(int*)a-*(int*)b; 6 } 7 int main() 8 { 9 int ...
分类:其他好文   时间:2015-05-29 08:36:28    阅读次数:143
取石子(一) NYOJ 23
#include//取石子(一)(23) int main(){ int x,m,n; scanf("%d",&x); while(x--){ scanf("%d%d",&n,&m); if(n%(m+1)==0&&n>m)printf("Lose\n"...
分类:其他好文   时间:2015-05-29 08:35:24    阅读次数:116
1823条   上一页 1 ... 81 82 83 84 85 ... 183 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!