有点意思~ 只要相应的处理好对于 4 和 9 这两种特殊情况就好了.其他都是简单的加法
好吧, 老老实实贴出我的解答, 好丑... 不够简洁.. 可以看皓神的解答...
Python:
"""
Programmer : EOF
Date : 2015.04.10
File : itr.py
E-mail : ja...
分类:
其他好文 时间:
2015-04-10 17:51:21
阅读次数:
118
STL 源码分析 # stl_pair #
pair是一种很简单也很常用的关联容器(associative container).
/***********************************************
Programmer : EOF
Date : 2015.04.10
File : pair.cpp
E-mail : jaso...
分类:
其他好文 时间:
2015-04-10 15:32:52
阅读次数:
160
这些光标操作快捷键适用mac/linux终端和chrome控制台,这些快捷键都是emacs的快捷键,常用的快捷键:Ctrl + d 删除一个字符,相当于通常的Delete键(命令行若无所有字符,则相当于exit;处理多行标准输入时也表示eof)Ctrl + h 退格删除一个字符,相当于通...
分类:
其他好文 时间:
2015-04-10 13:16:05
阅读次数:
108
PHP Untitled DocumentHello,$name!EOT;?>注意:1.以";echo"主页";echo"主页内容";echo";}
分类:
Web程序 时间:
2015-04-10 10:56:20
阅读次数:
185
STL 源码分析 # stl_number #
/***********************************************************
Programmer : EOF
e-mail : jasonleaster@gmail.com
Date : 2015.04.04
File : 6number.cpp
********************...
分类:
其他好文 时间:
2015-04-09 19:58:47
阅读次数:
153
cat>/etc/sysctl.conf<<EOF
net.ipv4.ip_forward=0
net.ipv4.conf.all.rp_filter=1
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.default.accept_source_route=0
kernel.sysrq=0
kernel.core_uses_pid=1
net.bridge.bridge-nf-call-ip6tables=0
net.bridge.bridg..
分类:
系统相关 时间:
2015-04-09 17:43:13
阅读次数:
304
#include#include#includeint main(){int a[110],b[110],i,j,n;double s;while(scanf("%d",&n)!=EOF&&n!=0){s=0;for(i=0;i<n;i++){scanf("%d%d",&a[i],&b[i]);}a...
分类:
其他好文 时间:
2015-04-09 13:34:55
阅读次数:
103
#include#includeint main(){int a,i,s,n;while(scanf("%d%d",&a,&n)!=EOF&&a!=0||n!=0){s=a%1000;for(i=0;i<n-1;i++){s=(s*a%1000)%1000;}printf("%d\n",s);}re...
分类:
其他好文 时间:
2015-04-08 14:37:41
阅读次数:
83
LeetCode #Valid Palindrome#
我的Python解答:
"""
Programmer : EOF
e-mail : jasonleaster@gmail.com
Date : 2015.04.07
File : vp.py
"""
import string
...
分类:
其他好文 时间:
2015-04-07 17:49:59
阅读次数:
99
准备工作
(1)、引入ADO类
#import "c:\program files\common files\system\ado\msado15.dll" \ no_namespace \ rename ("EOF", "adoEOF")
(2)、初始化COM
在MFC中可以用AfxOleInit();非MFC环境中用:
...
分类:
数据库 时间:
2015-04-07 11:55:14
阅读次数:
246