A non-empty zero-indexed array A consisting of N integers is given. A pair of integers (P, Q), such that 0 ≤ P < Q < N, is called a slice of array A (...
分类:
其他好文 时间:
2015-01-18 20:56:08
阅读次数:
107
要求
编写一个程序,当输入python bigdigists.py 234234,会输出下列结果。
源码
import sys
Zero = [" *** ",
" * * ",
"* *",
"* *",
"* *",
" *...
分类:
编程语言 时间:
2015-01-18 15:49:36
阅读次数:
185
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a triplet (a,b,c) mu...
分类:
编程语言 时间:
2015-01-17 10:02:22
阅读次数:
232
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input st...
分类:
其他好文 时间:
2015-01-14 12:50:05
阅读次数:
162
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2015-01-13 19:32:58
阅读次数:
160
#include "stdio.h"int main(void){ int num; while(scanf("%d", &num), num){ int i; double number; int Zcount = 0, Fcount = 0, zero = 0; for(i=0; ...
分类:
其他好文 时间:
2015-01-13 14:03:31
阅读次数:
128
1 package com.zero.lab1.main; 2 3 import java.util.List; 4 5 public class Registrar { 6 private static Registrar registrar = null; 7 8 pri...
分类:
其他好文 时间:
2015-01-11 22:58:59
阅读次数:
236
Last non-zero Digit in N!
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 6432 Accepted Submission(s): 1593
Problem Description...
分类:
其他好文 时间:
2015-01-11 21:44:26
阅读次数:
279
blt 小于跳转tst r0,#02bne sleepldr r1,#0解释:位比较,先进行and运算,如果r0第2位不为1,则与的结果为0,设置标志位zero=1,继续下面的ldr指令。反之,zero=0,跳转到sleep执行。bne指令: 非零则跳转个人总结:tst 和bne连用: 先是用ts....
分类:
其他好文 时间:
2015-01-11 19:02:23
阅读次数:
375
在忙了一个周末之后,还是小有成果的。发布了一个简单的物联网平台: http://mqtt.phodal.com,简单地写一下使用指南。CoAP协议使用Libcoap的话可以用coap-client -m get coap://mqtt.phodal.com:5683/topics/zero
用coap-cli则可以用:echo -n 'hello world' | coap post coap:/...
分类:
其他好文 时间:
2015-01-11 13:36:14
阅读次数:
203