`
universsky
  • 浏览: 99489 次
文章分类
社区版块
存档分类
最新评论
文章列表
(一) 时间飞逝。 我们是一群搭载时间之车的乘客,疾驶在生命的单行线上。无法减速,不能回头。 悲喜,聚散,成败,像路边的花草,一闪而过。 一切的经历和感受,都径自往身后狂奔而去;我们却是径自前行。很 ...
#include <stdio.h> #include <stdlib.h> #include "string.h" #include "time.h" #define bool int #define false 0 #define true 1 #define T 10 int count0=0; //统计B[]中 各数字出现的次数 结果放到s[]中 void count_digit(int *B,int s[T], int* n) { memset(s,0x00,sizeof(int)*T); regi ...
/**************************水仙花数**************************/ #include <iostream> #include <cstdlib> #include <ctime> #include <cstring> #define N 10 using namespace std; void Narcissus(const int& n); //输出n位数中的水仙花数 int main(void) { clock_t start , end; int n=1; ...

Awk

Awk awk释义 awk简介 调用方式 语法 内置变量 内置函数 命令行使用 详细介绍 变量 运算与判断 流程控制 12 函数 输入输出 展开awk释义 awk简介 调用方式 语法 内置变量 内置函数 命令行使用 详细介绍 变量 运算与判断 流程控制 12 函数 输入输出 展开awk释义 英文原义:Aho、Weinberger、Kernighan 中文释义:三位创造者Aho、Weinberger和Kernighan统称 awk简介 AWK是一种优良的文本处理工具。它不仅是 Linux 中也是任何环境中现有的功能最强大的数据处 ...
这里我主要是换个思路,穷举这个数中的每个位置上的数字的总数。从一开始,我们假设共有该数中存在9个9,我们将这个数的信息存到几个特定的数组中去: Java代码 privateint[]countArray=newint[10];//个数列表 privateint[]countSumArra ...
import java.math.BigInteger; import java.util.Hashtable; public class Main { private static final int SIZE = 21; private int[] countArray = new int[10]; // 个数列表 private int[] countSumArray = new int[10]; // 个数总数 private BigInteger[] sumArray = new BigInteger[10];// 值总数 ...
#include <stdio.h> #include <time.h> #define N 39 int k[10]={0}; //k[10]用来得到0-9数字出现的个数 int po[10][N]={0},count_mul_power[10][N]={0}; //po数组用来计算出0-9的N次方。count_mul_power用来计算数字出现次数*它的N次方 int count=0; //计算得到几个水仙花数了,得到2个以后就结束程序 void init_power() //这个函数用来获得0-9的N次方,存在po数组里 { i ...
不定方程的非负(正)整数解问题以及c语言算法&编程实现 [问题描述] 1. 求不定方程29a+30b+31c=2196的正整数解 2. c语言、编程求不定方程组 3x+4y-z=32、、x*y=16z在区间[-100,100]上的整数解的个数,并打印出所有的整数解 用3个FOR循环int c=0;for (x=-100;x<=100;x++){ for (y=-100;y<=100;y++) { for (z=-100;z<=100;z++) { if(3*x+4*y-z==32&&x*y==16*z) c++ } }} 3.求满足不定方程 ...
字母C的发展史 符号起源 字母C的产生可能是由于一个投掷棒的符号,在古埃及的象形文字里 (1)并很早出现在闪族的书面当中-大约在公元前1500年的西奈半岛。 (2)大约在公元前1000年,在比布鲁斯(古地中海港市,位于现黎巴嫩贝鲁特以北的朱拜勒,公元前第二个千年成为繁华的腓尼基城)和腓尼基的其他一些地方以及迦南的中心,这个符号是特定的线性形式。 (3)对于全部的线性形式来说。在闪族的语言中这个符号叫做gimel或是gaml,,意思是throwing stick(投掷棒)。希腊人重新改变的闪族人的命名称之为gamma。后来,当希腊人开始用从左到右书写代替从右到左书写的时候,他们从翻转了字 ...
linux中grep命令的使用 grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、egrep和fgrep。 grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来。grep全称是Global Regular Expression Print,表示全局正则表达式版本,它的使用权限是所有用户。ps -ef | grep httpd :检查 ...
Flags -cSubcommand Carries out the ex editor subcommand before viewing with vi begins. The cursor moves to the line affected by the last subcommand to be carried out. When a null operand is entered, as in -c' ', the vi editor places the cursor on the first line of the file. The -c flag is inc ...
vi or vedit Command Purpose Edits files with a full-screen display. Syntax { vi | vedit } [ -l ] [ -R ] [ -tTag ] [ -v ] [ -wNumber] [ -yNumber ] [ -r [ File ] ] [{ + | -c } { Subcommand } ] [ File ... ] Description The vi command starts a full-screen editor based on the underlying ex ed ...
/** * * @author 东海陈光剑 2013-4-26下午1:00:36 * flower2.java * chenguangjian iSword * Email:universsky@126.com * Blog: http://blog.sina.com.cn/universsky11/ * http://blog.csdn.com/universsky * http://blog.163.com/universsky@126/ */ package iSword; /** * * @author 东海陈光剑 2013-4-26 ...
/** * * @author 东海陈光剑 2013-4-26下午12:55:48 * flower_numbers.java * chenguangjian iSword * Email:universsky@126.com * Blog: http://blog.sina.com.cn/universsky11/ * http://blog.csdn.com/universsky * http://blog.163.com/universsky@126/ */ package iSword; /** * * @author 东海陈光剑 2013-4-26下午12:5 ...
/* 水仙花数是指一个 n 位数 ( n≥3 ),它的每个位上的数字的 n 次幂之和等于它本身。 (例如:1^3 + 5^3 + 3^3 = 153) 普通的穷举算法, CPU0: Intel(R) Pentium(R) CPU P6200 @ 2.13GHz 求解8位数以内的水仙花数需要45s左右的时间, */ /** @author : 东海陈光剑 2013.4.26 Friday ,01:02 */ #include <stdio.h> #include <stdlib.h> #include <time.h> //#include < ...
Global site tag (gtag.js) - Google Analytics