1. Shell基础1.1 初始化文件当启动shell,它将运行初始化文件,具体文件取决于该shell是一个登录shell还是一个非登录shell的交互式shell(如通过命令bash),又或者是一个非交互式shell(用来执行shell脚本)。登录shell或带"--login"选项的shell包含如下初始化文件:1) /etc/profile: shell首先执行/etc/
原创
2012-12-04 21:16:24
1506阅读
概述(SYNOPSIS) bash [options] [file] 版权所有(COPYRIGHT) Bash is Copyright (C) 1989-2002 by the Free Software Foundation, Inc. 描述(DESCRIPTION) Bash 是一个与 sh
转载
2019-06-24 13:04:00
233阅读
2评论
"Fibonacci again and again" 参考: "SG函数和SG定理【详解】" 思路:这是比较简单的SG定理的运用,SG定理—— 游戏和的SG函数等于各个游戏SG函数的Nim和 如果一个位置 的SG值为0,那么这个点就为必败点 ,否则就是必胜点 必败点:用N表示 必胜点:用P表示 对
原创
2022-11-03 15:26:59
75阅读
德国多个研究机构的研究人员绘制了来自病人血液的miRNA表达谱,其中包括自体免疫疾病、癌症、心血管疾病以及慢性炎症患者。该研究成果发表有疾病的...
原创
2023-11-07 11:36:59
77阅读
Bash Component ArchitectureLessons from the architecture of Bash
it’s vital to have detailed change logs.If it’s appropriate, extensive regression testing is something I would recommend building into
转载
2012-09-30 11:30:00
173阅读
2评论
https://qduoj.com/problem/65提前把所有字符串按字典序排序 然后插入字符串
原创
2022-06-16 00:27:28
72阅读
题意:同nim,3堆,每次取的为fib数,n#include using namespace std;int f[1005], a[100];bool b[20];int main() { a[1]=1; a...
原创
2021-08-11 14:02:08
66阅读
// Time 0ms, Memory 236K#include
#include
#include
#include
using namespace std;
int fb[16],sg[1001],v[1001];
int mex(int x)
{ if(sg[x]!=-1) return sg[x]; int i; memset(v,0,sizeof(v)); for(i=1;i=0;i++) { sg[x-fb[i]]=mex(x-fb[i]); v[sg[x-fb[i]]]=1; } for(i=...
转载
2013-05-30 11:04:00
29阅读
2评论
HDU
转载
2012-02-24 12:41:00
41阅读
2评论
Fibonacci again and againTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:184864-bit integer IO format:%I64d Java...
转载
2014-08-12 21:21:00
133阅读
2评论
Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)=1;F(2)=2;F(n)=F(n-1)+F(n-2)(n>=3);所以,1,2,3,5,8,13……就是菲波那契数列。在HDOJ上有不少相关的题目,比
转载
2018-01-31 08:45:00
48阅读
2评论
这是尼姆博弈的变型; 还是博弈,可是这次要用Sg函数最后异或等于0后手赢 反之,先手赢 #include <iostream> #include <cstring> #include <cstdio> using namespace std; int f[100]={1,2,3,5}; int e[
转载
2016-02-06 08:13:00
50阅读
2评论
Fibonacci again and againTime Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32
原创
2022-03-18 14:54:38
50阅读
Fibonacci again and again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)http://acm.hdu.edu.cn/showproblem.php?pid=18
原创
2021-08-05 10:47:45
62阅读
没什么好说的,博弈简单题,懂得SG改下s数组大体都一样详细讲解类试题1850#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int n,m,p,sg[1003],h[1003],s[20];void Sg(){ int i,j; for(i=0;i<
原创
2023-02-24 10:11:51
68阅读
Fibonacci again and again Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)=1;F(2)=2;F(n)=F(n-1)+F(n-2)(n>=3);所以,1,2,3,5,8,13…
转载
2017-02-06 16:11:00
86阅读
2评论
http://acm.hdu.edu.cn/showproblem.php?pid=1848 #include<cstdio> #include<cstring> int sg[10001],a[15]; int mex(int n) { bool vis[16]={0}; for(int i=0;
转载
2017-07-01 08:43:00
52阅读
2评论
没什么好说的,博弈简单题,懂得SG改下s数组大体都一样详细讲解类试题1850#include
#include
#include
using namespace std;
int n,m,p,sg[1003],h[1003],s[20];
void Sg()
{ int i,j; for(i=0;i=0)h[sg[i-s[j]]]=1; for(j=0;j<1003;j++) if(h[j]==0) { sg[i]=j; break; } }
}
int main()
{ s[0]=1;s[1]=2; for(int ...
转载
2012-04-04 16:21:00
27阅读
当在VirtualBox中尝试安装Debian 8.3.0 三次都失败后 每次卡在安装软件这一步,我决定不再迷信Debian软件包质量高这件事。
转载
2016-03-23 10:29:00
86阅读
2评论
有位满腹心思的贵族拿了两只花瓶到佛佗前献佛,佛说:‘放下!’贵族放下左手中的花瓶。佛又说‘放下!’,他放下右手中的花瓶。佛还是对他说:‘放下!’贵族说:‘我已经是两手空空了,没有什么可再放下,你还要我放下什么?’
佛说:‘我要你放下的是你的心与念想,当你把这些统统放下,再没什么了,你才能从桎梏中解脱出来。’贵族
转载
2007-05-03 21:58:01
346阅读
1评论