码迷,mamicode.com
首页 >  
搜索关键字:NPU    ( 4242个结果
201903-2 二十四点
n = int(input())result = []for i in range(n): temp = str(input()) if("x" in temp): temp = temp.replace("x","*") if("/" in temp): temp = temp.replace(" ...
分类:其他好文   时间:2020-02-04 17:12:19    阅读次数:80
luoguP5824 十二重计数法 (12合一)
12种组合计数问题合在一起. code: #include <cmath> #include <cstring> #include <algorithm> #include <cstdio> #include <string> #define ll long long #define ull uns ...
分类:其他好文   时间:2020-02-04 15:47:02    阅读次数:93
codeforces 962 F Simple Cycles Edges
求简单环,即求点=边数的点双分量,加上判断点和边的模板即可 const int maxm = 1e5+5; int head[maxm<<1], edgecnt, dfn[maxm], low[maxm], bcc_cnt, bccnum[maxm], dfs_clock, s[maxm], top ...
分类:其他好文   时间:2020-02-04 13:47:50    阅读次数:76
POJ-1308 Is It A Tree?(并查集判断是否是树)
http://poj.org/problem?id=1308 Description A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more ...
分类:其他好文   时间:2020-02-04 11:11:57    阅读次数:84
[LeetCode 955] Delete Columns to Make Sorted II
We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, we ...
分类:其他好文   时间:2020-02-04 10:24:21    阅读次数:67
CSS——05核心:盒子模型2
效果图矩形的圆角, 就不要用 百分比了,因为百分比会是表示高度和宽度的一半。我们这里矩形就只用 用 高度的一半就好了。精确单位...... ...
分类:Web程序   时间:2020-02-04 09:12:52    阅读次数:288
Leetcode 5 Longest Palindromic Substring (最长回文子字符串)(动态规划)
Leetcode 5 题目描述 例子 方法一 方法一关键思想,每当我们向右移动时,我们只需要考虑使用这个新字符作为尾巴是否可以产生新的回文字符串,其长度为(当前长度+1)或(当前长度+2)。 方法一优于方法二采用的动态规划。 Java我们提供两种方法,由运行时间,我们可以看出使用char[]性能比s ...
分类:其他好文   时间:2020-02-04 00:15:06    阅读次数:74
leetcode 43. Multiply Strings
题目内容 Given two non negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example: ...
分类:其他好文   时间:2020-02-03 22:31:16    阅读次数:81
A - Let the Balloon Rise
Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popula ...
分类:其他好文   时间:2020-02-03 22:08:22    阅读次数:85
事件类型——UI事件
浏览器支持情况:IE9在内的所有主流浏览器都支持DOM2事件,IE9同样支持DOM3级事件。 load:1.页面完全加载在window上触发。2.图片完全加载后在<img>上触发。3.嵌入内容加载完毕后在<object>上触发。4.框架加载完毕后在框架集上触发 window.onload=()=>{ ...
分类:其他好文   时间:2020-02-03 15:34:39    阅读次数:76
4242条   上一页 1 ... 87 88 89 90 91 ... 425 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!