• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Quentin Yo

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4

2013年4月2日

剩余定理
摘要: 剩余问题在整数除法里,一个数同时除以几个数,整数商后,均有剩余;已知各除数及其对应的余数,从而要求出适合条件的这个被除数的问题,叫做剩余问题。解法(基础数法)基础数的条件:(1)此数必须符合除数自身的余数条件;(2)此数必须是其他所有各除数的公倍数。第一步:求各除数的最小公倍数[3,5,7]=105第二步:求各除数的基础数(1)[3] 105÷3=35;[35]÷3=11……2(2)[5] 105 ÷ 5=21 ;21÷5=4……1(当于3);∵1×3=3;∴21×3=63(3)[7] 105 ÷ 7=15;15 ÷ 阅读全文
posted @ 2013-04-02 20:40 QuentinYo 阅读(325) 评论(0) 推荐(0)
 

2013年4月1日

ACM.DNA Sorting
摘要: One measure of "unsortedness" in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence "DAABEC", this measure is 5, since D is greater than four letters to its right and E is greater than one letter to 阅读全文
posted @ 2013-04-01 21:23 QuentinYo 阅读(284) 评论(0) 推荐(0)
 

2013年3月31日

ACM. Digital Roots
摘要: BackgroundThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process is repeated. This is continued as 阅读全文
posted @ 2013-03-31 17:43 QuentinYo 阅读(340) 评论(0) 推荐(0)
 
ACM.Ones
摘要: Given any integer 0 ≤ n ≤ 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1's. How many digits are in the smallest such a multiple of n?Sample Input379901Output for Sample Input3612code 1 #include 2 3 using namespace std; 4 5 int main() 6 阅读全文
posted @ 2013-03-31 17:02 QuentinYo 阅读(249) 评论(0) 推荐(0)
 

2013年1月23日

将BMP格式的灰度图像或24位真彩图像二值化
摘要: 1 /************************************************* 2 Author: 3 Date:2013-01-23 4 **************************************************/ 5 #include "stdafx.h" 6 //Visual studio 2010版中应该放到stdafx.h文件中的头文件们 7 #include<math.h> 8 #include <iomanip> 9 #include <stdlib.h> 10 #incl 阅读全文
posted @ 2013-01-23 20:33 QuentinYo 阅读(731) 评论(0) 推荐(0)
 

2012年11月13日

jpegEncode
摘要: 1 #include "Windows.h" 2 #include <stdio.h> 3 #include <iostream.h> 4 #include <fstream.h> 5 #include <stdlib.h> 6 #include <math.h> 7 #include <string.h> 8 9 int OUTBYTES=0; 10 11 //读入和存储bmp文件 12 unsigned char *pBmpBuf;//读入图像数据的指针 13 int bmpWidth; 14 in 阅读全文
posted @ 2012-11-13 00:22 QuentinYo 阅读(831) 评论(0) 推荐(0)
 

2012年10月20日

如何使用自定义Title
摘要: java代码中的工作1 public void onCreate(Bundle savedInstanceState)2 {3 super.onCreate(savedInstanceState);4 requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);5 getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.layout.title);6 }建立xml文件,构建自定义布局 阅读全文
posted @ 2012-10-20 00:02 QuentinYo 阅读(128) 评论(0) 推荐(0)
 

2012年10月11日

浮点型数据的范围
摘要: 1范围float和double的范围是由指数的位数来决定的。float的指数位有8位,而double的指数位有11位,分布如下:float:1bit(符号位)8bits(指数位)23bits(尾数位)double:1bit(符号位)11bits(指数位)52bits(尾数位)于是,float的指数范围为-127~+128,而double的指数范围为-1023~+1024,并且指数位是按补码的形式来划分的。其中负指数决定了浮点数所能表达的绝对值最小的非零数;而正指数决定了浮点数所能表达的绝对值最大的数,也即决定了浮点数的取值范围。float的范围为-2^128 ~ +2^128,也即-3.40E 阅读全文
posted @ 2012-10-11 10:57 QuentinYo 阅读(3102) 评论(0) 推荐(1)
 

2012年10月8日

android中ADB server didn't ACK * failed to start daemon 或者找不到sdk的路径 或者 adb server is out of date
摘要: 问题原因:出现这个问题是因为有其他程序占用了ADB的端口,如我的问题是因为安装了豌豆荚而产生冲突。解决方法:1.关闭占用ADB端口的程序的所有进程,同时注意禁止其开机启动。 2.重启ADB:命令行下进入ADB所在目录,如我的是在D:Program Files/android-sdk-windows/platform tools下面,执行以下命令:adb kill-server(这是关闭adb),adb start-server(重启adb)。 3.重启eclipse。 阅读全文
posted @ 2012-10-08 21:12 QuentinYo 阅读(237) 评论(0) 推荐(0)
 
上一页 1 2 3 4