码迷,mamicode.com
首页 >  
搜索关键字:continue    ( 5224个结果
js编写一个函数,计算任意两个数字之间所能组成的奇数个数,数字必须是个位数。
编写一个函数,计算任意两个数字之间所能组成的奇数个数,数字必须是个位数。 ...
分类:Web程序   时间:2020-04-27 21:00:33    阅读次数:205
js 中childNodes与children的区别,firstChild与firstElementChild区别
1、childNodes:获取节点,不同浏览器表现不同; IE:只获取元素节点; 非IE:获取元素节点与文本节点; 解决方案:if(childNode.nodeName=="#text") continue 或者 if(childNode.nodeType != '3') continue 2、ch ...
分类:Web程序   时间:2020-04-27 19:13:08    阅读次数:123
Python continue 语句
Python continue 语句 Python continue 语句跳出本次循环,而break跳出整个循环。 continue 语句用来告诉Python跳过当前循环的剩余语句,然后继续进行下一轮循环。 continue语句用在while和for循环中。 Python 语言 continue 语 ...
分类:编程语言   时间:2020-04-27 10:00:09    阅读次数:82
[每日一题]:CodeForces - 1279B Verse For Santa
题目: 题目大意: 给一个序列,然后给你一个数 s ,从头开始进行累加,不能超过 s 在累加的过程中,你可以 跳过 一个数 进行累加,最后保证累加的 数量是最多的,不是累加的和哦,输出你跳过的那个数在序列中的位置。 (根据样例推断,似乎只能从前开始累加,否则第一个样例就有误了,嘻嘻) 考察点: 签到 ...
分类:其他好文   时间:2020-04-26 20:37:16    阅读次数:65
[Algo] 281. Remove Spaces
Given a string, remove all leading/trailing/duplicated empty spaces. Assumptions: The given string is not null. Examples: “ a” --> “a” “ I love MTV ” ...
分类:其他好文   时间:2020-04-26 10:56:45    阅读次数:82
CodeForces-650B Image Preview 二分+模拟
"CodeForces 650B Image Preview" 题意 手机里有n张图片,打开相机出现的是第一张,第一张右滑得到第n张,同理第n张左滑得到第1张,翻页耗费a秒,看照片耗费1s,但是照片有横屏的竖屏的,如果是横屏的需要翻转一下,翻转需要的时间为bs,如果某张照片是已经看过的,可以不看,否 ...
分类:其他好文   时间:2020-04-25 19:23:58    阅读次数:55
树的直径
dp include include include include using namespace std; const int N=1000100; int head[N],net[N],ans,ed[N],ver[N],tot,d[N]; bool v[N]={false}; void add ...
分类:其他好文   时间:2020-04-25 17:11:38    阅读次数:64
Conway's Game of Life
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life The universe of the Game of Life is an infinite, two-dimensional orthogonal grid of square cells ...
分类:其他好文   时间:2020-04-23 18:55:58    阅读次数:76
XHXJ's LIS (数位dp)
题干 \ define xhxj (Xin Hang senior sister(学姐)) If you do not know xhxj, then carefully reading the entire description is very important. As the stronge ...
分类:其他好文   时间:2020-04-22 16:11:45    阅读次数:74
PTA ----- 最长对称子串
#include<stdio.h>#include<string.h>#defineMAXS1001intmain(void){charinput[MAXS],result[MAXS];intstr_length,i,j,k,max_length=0;gets(input);str_length=strlen(input);for(i=1;i<=str_length;
分类:其他好文   时间:2020-04-20 23:44:54    阅读次数:67
5224条   上一页 1 ... 31 32 33 34 35 ... 523 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!