Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl ...
分类:
其他好文 时间:
2019-01-26 11:08:27
阅读次数:
131
控制台异常: parsing XML document from class path resource [applicationtext.xml]; nested exception is java.io.FileNotFoundException: class path resource [ap ...
分类:
移动开发 时间:
2019-01-25 23:19:47
阅读次数:
318
常用字段 AutoField 自增的整型字段,必填参数 primary_key=True,则成为数据库的主键.无该字段时,Django会自动创建,一个model不能有两个AutoField字段 IntegerField 整数类型,数值的范围是 -2147483648 ~ 2147483647。 Ch ...
分类:
其他好文 时间:
2019-01-25 22:52:53
阅读次数:
191
25336641ed5d2f00ede5bc7f82e981b5ba7b09d8ffba44709be5750597060c62b3bd4b840fa297e36b56d3050a2682c9bfd2b41f7d55057dbbeb9f9e04a09c95 a.colors = { bold: [1 ...
分类:
其他好文 时间:
2019-01-25 17:48:37
阅读次数:
205
今天项目做设计,客户要看数据设计,需要到处Excel表格。去网上搜索下,把使用总结如下: 代码一:到处到单个excel中 Option Explicit Dim rowsNum rowsNum = 0 ' ' Main function ' ' Get the current active mode ...
分类:
其他好文 时间:
2019-01-25 17:35:09
阅读次数:
146
B - Bicoloring 题意:判断此图是否为二分图(染色法,相邻两点不同色) AC代码: 1 /***********************************************/ 2 3 int co[250]; 4 5 struct node{ 6 int v; 7 node( ...
分类:
其他好文 时间:
2019-01-25 15:15:00
阅读次数:
186
梅氏砝码问题 例题 处女座的砝码 处女座的砝码 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld 题目描述 处女座热爱做物理实验,为了实验,处女座必须要精确的知道物品的质量。处女座准备自己设计一套砝码,每一 ...
分类:
其他好文 时间:
2019-01-24 20:13:18
阅读次数:
183
正解:记搜+逼近 解题报告: 神仙题预警,,, 我真滴觉得还是挺难的了,,,先存下还没完成的代码QAQ 咕咕咕 下午写趴QAQ #include<bits/stdc++.h> using namespace std; #define ll long long #define rp(i,x,y) fo ...
分类:
编程语言 时间:
2019-01-24 13:17:54
阅读次数:
206
题意: 给出一个长度为$n - 1的字符串,s_i为'I', 'D', '?'$ $'I'表示a_i < a_{i + 1}$ $'D'表示 a_i > a_{i + 1}$ $'?' 表示 a_i 和 a_{i + 1} 的大小关系任意$ 思路: $dp[i][j] 表示考虑到第i位,当前位的数字 ...
分类:
其他好文 时间:
2019-01-24 00:31:20
阅读次数:
142
一、view的初印象 一个视图函数(类),简称视图。我们发起web请求时,返回的web响应。【大家约定成俗将视图放置在项目(project)或应用程序(app)目录中的名为views.py的文件中。】 二、普通view的样子 下面是一个以HTML文档的形式返回当前日期和时间的视图: 三、画过妆的vi ...
分类:
其他好文 时间:
2019-01-23 20:31:06
阅读次数:
154