1,attempted assighnment to literalif (i == 3){ //codes}elseif (4 == 4);2,引用数组元素相当于对指针加上偏移量的引用3,program one-stop learnningunder the terms of,invariant....
分类:
其他好文 时间:
2015-03-30 18:24:10
阅读次数:
141
hamming解题报告--------------------------------------------------------------------------------------------------------------------------------------...
分类:
其他好文 时间:
2015-03-20 18:06:08
阅读次数:
123
UVA - 146
ID Codes
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
It is 2084 and the year of Big Brother has...
分类:
其他好文 时间:
2015-03-20 09:24:34
阅读次数:
132
下面的代码演示的是让小车直线前进的arduino程序:/*the following codes functions to make the car run forward repeatedly*/int pin1=8;int pin2=9;int speedpin1=11;int pin3=6;i...
分类:
其他好文 时间:
2015-03-15 21:06:35
阅读次数:
182
开始的时候没有什么思路,后面看了一下数据范围不大,直接就暴力了。
其实我们只需要从题目中给定的0–2^B-1这些数中从小到大选n个出来就行了,只需要满足每次选择的数和前面已选的数的Hamming距离必须不小于D。代码如下:/*
ID: 15674811
LANG: C++
TASK: hamming
*/#include
#include
#include<cs...
分类:
其他好文 时间:
2015-03-13 12:40:43
阅读次数:
121
题目大意:求n个两两hamming距离大于等于d的序列,每个元素是一个b bit的数思路:仍然暴力大法好 1 /*{ 2 ID:a4298442 3 PROB:hamming 4 LANG:C++ 5 } 6 */ 7 #include 8 #include 9 #define maxn 50010...
分类:
其他好文 时间:
2015-03-07 16:59:23
阅读次数:
116
错误代码:Traceback (most recent call last): File "D:/Python27/1400OS_01_Codes/code/sp_genfromtxt.py", line 3, in data=sp.genfromtxt("web_traffic.tsv"...
分类:
其他好文 时间:
2015-03-07 11:20:06
阅读次数:
1322
// Summary:
// Contains the values of status codes defined for HTTP.
public enum HttpStatusCode
{ // Summary: // Equivalent to HTTP status 100. System...
分类:
Web程序 时间:
2015-03-04 16:04:27
阅读次数:
169
Bicycle Codes
Time limit: 0.5 second
Memory limit: 64 MB
Den has two four-digit combination locks for protecting his bicycle from thieves. Every evening he arms the bicycle antitheft alar...
分类:
其他好文 时间:
2015-03-04 12:57:36
阅读次数:
144
一、类结构:
java.lang.Object
?
android.os.Build
二、类概述:从系统属性中提取设备硬件和版本信息。
三、内部类:
1、Build.VERSION 各种版本字符串
2、Build.VERSION_CODES 目前已知的版本代码的枚举类
四、常量:UNKNOWN 当...
分类:
移动开发 时间:
2015-03-02 19:12:40
阅读次数:
163