来源:点击打开链接
很简单,找规律。
每去掉一个点,点的总数量就减去n+m-1,然后看谁最先减到没有点可减,就可以了。
#include
#include
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
int totalpoint=n*m;
int count=0;
while(totalpoint>0)
{
...
分类:
其他好文 时间:
2014-07-26 02:18:56
阅读次数:
202
-----QUESTION-----
Given a string S and a string T, count the number of distinct subsequences
of T in S.
A subsequence of a string is a new string which is formed from the original string by...
分类:
其他好文 时间:
2014-07-26 02:10:36
阅读次数:
210
1. readn 和 writen 1.1 基础巩固: read 和 write 函数的返回值 1.1.1 read 函数原型为:ssize_t read(int fd, void* buf, size_t count); (这里的 void *在标准 C 中表示通用指针即任意类型的指针都可...
分类:
系统相关 时间:
2014-07-26 01:51:56
阅读次数:
472
1 hbase.hregion.max.filesize应该设置多少合适2 autoflush=false的影响3 从性能的角度谈table中family和qualifier的设置4 hbase.regionserver.handler.count详解1 hbase.hregion.max.file...
分类:
其他好文 时间:
2014-07-26 01:08:36
阅读次数:
194
===== 为Xen虚拟机扩容根文件系统(LVM) =====1. 增加1个4G的映像文件# dd if=/dev/zero of=data.img bs=4k seek=1024k count=12. 更改虚拟机配置:disk = [ "tap:aio:/xen_images/xen_centos...
分类:
其他好文 时间:
2014-07-25 16:40:41
阅读次数:
536
题意:给你n,m 问你n-m中有多少个数首位等于末位。解题思路:数位DP,从0-n有多少个,这样分开计算,首先把每一位所有可能都枚举出来,然后在一位一位的比对DP解题代码: 1 // File Name: 204a.cpp 2 // Author: darkdream 3 // Created Ti...
分类:
其他好文 时间:
2014-07-25 14:01:21
阅读次数:
236
案例一:
User
public class User {
}
UserSizeTest
public class UserSizeTest {
static final Runtime runTime=Runtime.getRuntime();
public static void main(String[] args) {
final int count...
分类:
编程语言 时间:
2014-07-25 11:26:41
阅读次数:
261
Private Sub Worksheet_Change(ByVal Target As Range)Dim srg As Range, x As ShapeIf Target.Count = Target.EntireRow.Cells.Count Then For Each x In Shape...
分类:
其他好文 时间:
2014-07-25 03:50:35
阅读次数:
237
对于axis1.4来说,我们常用wsdd的方式来发布服务。下面先看下我们是如何使用的。 定义一个服务类 package?com.sunsharing.axistest;
public?class?HelloWordService?{
????public?String?say...
分类:
编程语言 时间:
2014-07-25 00:05:04
阅读次数:
380
1.接口表数据检查无误
2.同样数据界面能正常完成
界面做trace
SQL ID: b2mw8gjyv7guh Plan Hash: 2015965341
DELETE FROM MTL_SERIAL_NUMBERS_TEMP
WHERE
TRANSACTION_TEMP_ID = :b1
call count cpu el...
分类:
其他好文 时间:
2014-07-24 23:05:04
阅读次数:
601