码迷,mamicode.com
首页 >  
搜索关键字:count and say    ( 19436个结果
【找规律】CodeForce #258 Problem A——Game With Sticks
来源:点击打开链接 很简单,找规律。 每去掉一个点,点的总数量就减去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
Distinct Subsequences
-----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
0723------Linux基础----------文件 IO 之 read 和 write (readn 、writen、readline)
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
HBase 性能优化笔记
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)
===== 为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
codefroces451D - Count Good Substrings 数位DP
题意:给你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
java对象占用内存大小计算方式
案例一: 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
Excel 删除行数据的同时删除当前行中的对象
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与spring集成,去掉累赘层~
对于axis1.4来说,我们常用wsdd的方式来发布服务。下面先看下我们是如何使用的。 定义一个服务类 package?com.sunsharing.axistest; public?class?HelloWordService?{ ????public?String?say...
分类:编程语言   时间:2014-07-25 00:05:04    阅读次数:380
WIP 投料报 Invalid Serial Number
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!