期望得分:100+100+40=240 实际得分:100+0+40=140 二进制拆分、二进制前缀和 #include<cstdio> #include<iostream> using namespace std; typedef long long LL; #define N 100001 int ...
分类:
其他好文 时间:
2017-10-10 00:11:01
阅读次数:
247
题目链接 :http://poj.org/problem?id=2472 Description In the movie "Blues Brothers", the orphanage where Elwood and Jack were raised may be sold to the Boa ...
分类:
Web程序 时间:
2017-10-09 21:06:42
阅读次数:
286
1:按值传递是什么 指的是在方法调用时,传递的参数是按值的拷贝传递。示例如下: [java] view plain copy public class TempTest { private void test1(int a){ //做点事情 } public static void main(Str ...
分类:
编程语言 时间:
2017-10-09 02:17:11
阅读次数:
161
一、题目链接 http://codeforces.com/gym/101194/problem/L 二、题意 有4个队伍,要打6场比赛(刚好每两个队伍都能相互比一次),若A和B比赛有3种结果: A赢B输,A加3分,B加0分;平局,每个队加1分;A输B赢,A加0分,B加3分。给定4个数,代表4个队伍的 ...
分类:
其他好文 时间:
2017-10-08 16:51:28
阅读次数:
216
kindeditor官网:http://kindeditor.net/demo.php 如何获取多个KindEditor中textarea文本框的值,方式很多种(带有HTML标签)。 var introduction = document.getElementById("richText").val ...
分类:
其他好文 时间:
2017-10-08 13:34:21
阅读次数:
236
1,项目结构 2,表单结构 3.代码 package com.entity; public class Book { private int bookid; private String bookname; private String bookauthor; private int bookpri ...
分类:
其他好文 时间:
2017-10-06 18:08:00
阅读次数:
272
运行结果如下: wireshark抓包截图如下: ...
分类:
编程语言 时间:
2017-10-05 19:59:50
阅读次数:
410
这道题为中等题 题目: 思路: 我的:DP,状态转换方程为 dp[i] = dp[p] + i / p,其中i为当前索引,p为i的因数,这个还是很容易想到的,比如i=8,p为4时,dp[8]就等于dp[4]+8/4,其中8/4可以理解为把i=4是的情况进行复制再粘贴的数量。但是这样的话复杂度比较高, ...
分类:
其他好文 时间:
2017-10-05 18:26:26
阅读次数:
176
public class Solution { public void solve(char[][] board) { if (board.length == 0 || board[0].length == 0) return; int m = board.length; int n = board... ...
分类:
其他好文 时间:
2017-10-04 14:31:33
阅读次数:
185
我们这里主要讲最常用的基于域名的虚拟主机的配置。 1.记事本打开hosts文件,该文件在:C:\ Windows\ System32\ drivers\etc这个文件夹下, 在文件内容的末尾写入如下内容: [plain] view plain copy 127.0.0.1(不可改) www.fang ...