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
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
求简单环,即求点=边数的点双分量,加上判断点和边的模板即可 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
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
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
效果图矩形的圆角, 就不要用 百分比了,因为百分比会是表示高度和宽度的一半。我们这里矩形就只用 用 高度的一半就好了。精确单位...... ...
分类:
Web程序 时间:
2020-02-04 09:12:52
阅读次数:
288
Leetcode 5 题目描述 例子 方法一 方法一关键思想,每当我们向右移动时,我们只需要考虑使用这个新字符作为尾巴是否可以产生新的回文字符串,其长度为(当前长度+1)或(当前长度+2)。 方法一优于方法二采用的动态规划。 Java我们提供两种方法,由运行时间,我们可以看出使用char[]性能比s ...
分类:
其他好文 时间:
2020-02-04 00:15:06
阅读次数:
74
题目内容 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
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
浏览器支持情况:IE9在内的所有主流浏览器都支持DOM2事件,IE9同样支持DOM3级事件。 load:1.页面完全加载在window上触发。2.图片完全加载后在<img>上触发。3.嵌入内容加载完毕后在<object>上触发。4.框架加载完毕后在框架集上触发 window.onload=()=>{ ...
分类:
其他好文 时间:
2020-02-03 15:34:39
阅读次数:
76