原创 杭電 2045 不容易系列之(3)—— LELE的RPG難題

http://acm.hdu.edu.cn/showproblem.php?pid=2045#include<stdio.h> int main(){ int n,i; __int64 f[51]; f[1

原创 杭電 2047 阿牛的EOF牛肉串

http://acm.hdu.edu.cn/showproblem.php?pid=2047#include<stdio.h> int main(){ int n,i,j; __int64 f[40]; f[1]

原创 杭電 2048 神、上帝以及老天爺

http://acm.hdu.edu.cn/showproblem.php?pid=2048錯排公式說明:http://baike.baidu.com/view/668994.htmN張票的所有排列可能是Ann = N!種排列方式現在的問

原创 杭電 2052 Picture

http://acm.hdu.edu.cn/showproblem.php?pid=2052開始時把行列座標搞錯了#include<stdio.h> int main(){ int n,m,i,j; char s[75][75];

原创 杭電 2054 A==B?

這道題題意說得不太清楚。。。參考了網上的一些解法,總結如下:比較簡單的解法:http://blog.csdn.net/zhaorongxia/article/details/7629858c語言版:#include<stdio.h> #i

原创 我的2013--一切從心開始

原文鏈接:http://blog.csdn.net/tengweitw/article/details/17880055  願乘風破萬里浪;甘面壁讀廿年書。        從保研成功一來,想好好休息一下,卻發現生活總是被各種事情佔據。  

原创 杭電 2056 Rectangles

http://acm.hdu.edu.cn/showproblem.php?pid=2056#include<stdio.h> void swap(double *x,double *y){ double t; t = *x; *x

原创 杭電 2051 Bitset

http://acm.hdu.edu.cn/showproblem.php?pid=2051#include<stdio.h> int main(){ int n,a[30],i,j; while(scanf("%d",&n) ==

原创 杭電 2055 An easy problem

http://acm.hdu.edu.cn/showproblem.php?pid=2055#include<stdio.h> int main() { int n,y; char x; scanf("%d",&n); getch

原创 杭電 2053 Switch Game

http://acm.hdu.edu.cn/showproblem.php?pid=2053#include<stdio.h> #include<string.h> int a[100001]; int main(){ int n,i,

原创 C/C++編譯器比較

C++編譯器 Linux系統 GCC-1985 GCC:GNU Compiler Collection(GUN 編譯器集合),它可以編譯C、C++、JAV、Fortran、Pascal、Object-C、Ada等語言。 gcc是

原创 C/C++發展歷史

C發展 1972,C語言在B語言基礎上由 Ken Thompson(肯·湯普遜)和D.M.Ritchie(DM裏奇) 共同完成。 1978,丹尼斯·裏奇和布萊恩·柯林漢合作出版了《C程序設計語言》的第一版。 C標準 時間 備

原创 Storm

Storm是什麼? Storm是一個分佈式實時流處理框架 爲什麼做Storm? 1. 解決什麼問題 2. 之前方法的不足 方法 數據模型 Storm採用拓撲的數據處理模型,一個拓撲就是一個有向圖(可以有環),其中頂點代表計算,邊代表數

原创 Linux命令行提示符顏色設置PS1

PS1顏色設置 參考文章(講得比較詳細):bashrc中PS1設置 顏色設置格式: 開始:\[\e[F;B;Cm\] 結束:\e[m 其中’F‘爲字體顏色,編號30-37;’B‘爲背景色,編號40~47;’C‘爲代碼。 可選顏色 F

原创 linux內核版本號查看與含義

查看內核版本 uname -r 或 cat /proc/version 查看distribution版本 cat /etc/issue 或 cat /etc/redhat-release(cat /etc/centos-releas