题意 给你一个长为 $n$ 的串,字符集为 $a,b,c,d,e,f$ 。你可以将整个串打乱之后重新放置,但是某些位置上有一些限制:必须放某个字符集的字符。问字典序最小的串,如果无解输出 "Impossible"。 $n\le 10^5$ 分析 每次贪心地选择字典序最小的字符判断,判断后面是否可以完 ...
分类:
其他好文 时间:
2019-01-05 12:11:07
阅读次数:
218
看到标题,是否有点疑惑 CSP 是什么东东。简单介绍一下就是浏览器的安全策略,如果 标签,或者是服务器中返回 HTTP 头中有 `Content-Security-Policy` 标签 ,浏览器会根据标签里面的内容,判断哪些资源可以加载或执行。阮一峰老师也有关于 CSP 的文章,大家可以看看 ...
分类:
其他好文 时间:
2019-01-03 23:08:14
阅读次数:
308
题目描述 You are given an unsorted array of integer numbers. Your task is to sort this array and kill possible duplicated elements occurring in it. 输入描述: ...
分类:
其他好文 时间:
2019-01-02 16:22:03
阅读次数:
158
Question Given a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C. Here, a circular array mea ...
分类:
其他好文 时间:
2019-01-02 10:47:18
阅读次数:
282
On Android and in Chrome (but not on iOS), it's possible to send push notifications with a PWA. We'll start by asking the user for permission to send ...
分类:
移动开发 时间:
2019-01-02 10:36:11
阅读次数:
180
It's possible to access some, but not all, of the native device features from a PWA. One that we canaccess, is the camera and camera roll. We'll use t ...
分类:
数据库 时间:
2018-12-31 22:37:32
阅读次数:
241
以文件形式存储的类被视为 resources。必须从磁盘加载它们,才能在其他类中访问它们。这可以使用 load 或 preload 函数来完成(见下面)。加载类资源的实例化是通过调用类对象上的 new函数来完成的: # Load the class resource when calling loa ...
分类:
其他好文 时间:
2018-12-30 14:39:31
阅读次数:
208
Java 基本数据类型 sizeof 功能 来源 https://blog.csdn.net/ithomer/article/details/7310008 Java基本数据类型int 32bitshort 16bitlong 64bitbyte 8bitchar 16bitfloat 32bitd ...
分类:
编程语言 时间:
2018-12-28 10:49:53
阅读次数:
304
一台服务器的日志对系统工程师来说是至关重要的,一旦服务器出现故障或被入侵,我们需要查看日志来定位问题的关键所在,所以说对于线上跑的服务器而言日志应该合理的处理及管理。 Syslog协议 系统日志(Syslog)协议是在一个IP网络中转发系统日志信息的标准,它是在美国加州大学伯克利软件分布研究中心(B ...
分类:
其他好文 时间:
2018-12-26 10:30:14
阅读次数:
229
maven编译工程报错 [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:add-source (scala-compile-first) on project trade: Execution sc ...
分类:
Web程序 时间:
2018-12-18 10:55:49
阅读次数:
2186