#include"stdio.h"int main(){int a;int n=0;scanf("%d",&a);n++;a=a/10;while(a>0){n++;a=a/10;}printf("%d",n);return 0;}
分类:
其他好文 时间:
2014-06-18 13:43:35
阅读次数:
201
js闭包的作用是使函数外可以访问函数内部的变量,是通过 在函数内部 定义 访问函数内变量 的函数实现的,内部的一个函数产生一个闭包function a(){ var i=0; return function (){return ++i;}};var c=a(); // 得到函数bc(); ...
分类:
Web程序 时间:
2014-06-18 13:31:35
阅读次数:
178
题目
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would ...
分类:
其他好文 时间:
2014-06-17 22:39:41
阅读次数:
274
MicrosoftAjax.js下载Function.__typeName = "Function";Function.__class = true;Function.createCallback = function (b, a) { return function () { ...
分类:
Web程序 时间:
2014-06-17 21:30:46
阅读次数:
412
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such po...
分类:
其他好文 时间:
2014-06-17 21:15:35
阅读次数:
211
/** linux/kernel/printk.c** Copyright (C) 1991, 1992 Linus Torvalds** Modified to make sys_syslog() more flexible: added commands to* return the last ...
分类:
其他好文 时间:
2014-06-17 21:10:57
阅读次数:
275
CREATE OR REPLACE FUNCTION F_TRANS_PINYIN_CAPITAL(P_NAME IN VARCHAR2) RETURN VARCHAR2 ASV_COMPARE VARCHAR2(100);V_RETURN VARCHAR2(4000);FUNCTION F_NLS...
分类:
数据库 时间:
2014-06-17 20:56:49
阅读次数:
253
Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321Have you thought about this?Here are some good questions to ...
分类:
其他好文 时间:
2014-06-17 20:06:14
阅读次数:
205
#include#includeusing namespace std;struct Food{ double x,y;}food[1005]; int cmp(Food i,Food j){ return i.x*j.y>j.x*i.y;}int main(){ double s,m; int i...
分类:
其他好文 时间:
2014-06-17 15:31:19
阅读次数:
160
shell学习总结之自定义函数Myfun (){ echo patams1 is $1 echo -n "now i is $i " ! [ "$i" ] && exit ; echo jj return '1'}myf=$(Myfun);echo myf Myfun 12unset Myfu...
分类:
其他好文 时间:
2014-06-17 14:14:48
阅读次数:
270