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评论
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评论
Linux操作系统是一种广泛使用的开源操作系统,其内核由Linus Torvalds和其他贡献者共同开发。与其他操作系统不同,Linux有许多不同的发行版,每个发行版都有其独特的特点和功能。其中,一些发行版如Red Hat Enterprise Linux(RHEL)和Ubuntu使用Bourne shell作为默认的命令行解释器。 Bourne shell是一种类Unix操作系统上常见的命令行
原创 2024-05-08 10:56:07
23阅读
mac上的终端使用的是Bourne-Again Shell命令,简称bashBourne-Again Shell简介 一bash是GNU组织开发和推广的一个项目,是对Bourne shell的扩展Bourne shell是 UNIX 最初使用的 Shell,作者Steven Bournebash是许多Linux平台的内定Shell,传统UNIX上还有许多Shell,包括tcsh、csh、
原创 2015-06-04 17:33:33
942阅读
Bourne Shellshell编程 作者: 何斌武 ([email]hbwork@dlut.edu.cn[/email],大连理工大学网络中心,April 1999.) 修改: shark巨菜(原文较老,经实践后加入了部分注释) 介绍:Bourne Shell 基础及其他很多有用的特性,shell编程及组织。 主要内容: .shell基础 基本介绍,环境
转载 精选 2008-12-23 14:50:05
1725阅读
2评论
Linux系统是一种广泛使用的操作系统,具有开源性和自由性的特点,由于其稳定性和高效性,深受广大用户的喜爱。其中,Linux系统中的shell是用户与Linux内核进行交互的重要工具。在Linux系统中,用户可以选择不同的shell,例如Bourne Shell(简称sh)。 Bourne Shell是由贝尔实验室的Stephen Bourne在1977年开发的一种运行在UNIX操作系统上的命令
原创 2024-04-22 09:59:50
68阅读
"Fibonacci again and again" 参考: "SG函数和SG定理【详解】" 思路:这是比较简单的SG定理的运用,SG定理—— 游戏和的SG函数等于各个游戏SG函数的Nim和 如果一个位置 的SG值为0,那么这个点就为必败点 ,否则就是必胜点 必败点:用N表示 必胜点:用P表示 对
原创 2022-11-03 15:26:59
75阅读
https://qduoj.com/problem/65提前把所有字符串按字典序排序 然后插入字符串
原创 2022-06-16 00:27:28
72阅读
bourne shell不支持数组,c shell korn shell,bash都支持,就bourne shell不支持 , NND,可恨的是我在chinaunix.com翻了一下午的帖子,翻了一下午的 unix shell编程指南(32章pdf格式的那个,巨全)。最终在一个兄弟的指点下,查.profile,发现自己用的正是bourne shell.靠。花了这么长的时间啊,我实在是太菜了,没办法...
转载 2006-07-13 23:11:00
129阅读
题意:同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评论
  • 1
  • 2
  • 3
  • 4
  • 5