数字中不能出现4或者连续的62,数位DP裸题 1 #include<stdio.h> 2 #include<string.h> 3 long long ans; 4 bool a[1000000]; 5 void fun(){ 6 for(long long i=0;i<=1000000;i++){ ...
分类:
其他好文 时间:
2017-03-19 11:08:52
阅读次数:
184
hdu2085 模拟 1 #include<stdio.h> 2 long long a[35][2]; 3 void fun(){ 4 a[0][0]=1; 5 a[0][1]=0; 6 for(int i=1;i<=33;i++){ 7 a[i][0]=3*a[i-1][0]+2*a[i-1][ ...
分类:
其他好文 时间:
2017-03-19 11:05:04
阅读次数:
169
1 tic; 2 clear 3 clc 4 N=4; 5 M=2*N; 6 h1=2/M; 7 h2=1/N; 8 x=0:h1:2; 9 y=0:h2:1; 10 fun=inline('exp(x)*sin(pi*y)','x','y'); 11 f=inline('(pi^2-1)*exp(... ...
分类:
其他好文 时间:
2017-03-17 23:43:05
阅读次数:
227
一、函数函数三要素:1.函数名2.参数列表3.函数体1.简单函数 1 2 3 4 5 function Show() { echo "hello"; } Show(); 1 2 3 4 5 function Show() { echo "hello"; } Show(); 1 2 3 4 5 fun ...
分类:
Web程序 时间:
2017-03-16 22:10:03
阅读次数:
315
package jichengdemo; public class FuXieDemo { public static void main(String[] args) { new studentww().fun(); } } class personmm{ void print(){ System... ...
分类:
其他好文 时间:
2017-03-16 20:31:46
阅读次数:
127
一、递归 构造一个函数fun(int n,int m); n表示输入的N,m表示组成N中的任意一个小项不超过m; 4 = 4; 4 = 3 + 1; 4 = 2 + 2; 4 = 2 + 1 + 1; 4 = 1 + 1 + 1 + 1; 分情况 1 m>n 例:fun(4,6)=fun(4,4); ...
分类:
其他好文 时间:
2017-03-13 23:45:27
阅读次数:
214
[SPOJ7258]Lexicographical Substring Search 试题描述 Little Daniel loves to play with strings! He always finds different ways to have fun with strings! Kno ...
分类:
其他好文 时间:
2017-03-13 20:11:29
阅读次数:
201
题目: Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library fun ...
分类:
其他好文 时间:
2017-03-13 11:20:52
阅读次数:
180
''' # 不改变原函数代码,在调用原函数之前或之后执行其他代码 # 不加参数是两层def,会直接将原函数地址传递进来,返回new_fun(带原函数地址)下的inner函数 # 原函数执行前调用的函数(统一参数) # def new_fun(sfunc): # def inner(args): # ... ...
分类:
编程语言 时间:
2017-03-12 19:51:35
阅读次数:
276
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <script type="text/javascript"> time() setInterval(time,1000) fun ...
分类:
其他好文 时间:
2017-03-10 10:42:31
阅读次数:
190