原创 PAT-B1042
#include<stdio.h> #include<string.h> int main(){ int i, len, max=-1,ascall[130]={0}; char maxc,s[1010]; gets(s); len=st
原创 PAT-B1049
#include<stdio.h> int main(){ int i, j, n; double ans=0,d[100010]={0}; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%lf",&
原创 PAT-B1040
#include<stdio.h> #include<algorithm> #include<string.h> using namespace std; int main(){ char c[100010]; int i, len, n
原创 PAT-B1047
#include<stdio.h> #include<string.h> int main(){ int i, n, len, k1, k2, k3, ascall[1010]={0}; int maxi, maxscore=-1; sc
原创 PAT-B1041
#include<stdio.h> int main(){ int i, j, k, n, m, zuowei[1001][2]={0}, s[1001]={0}; char c[1001][15]={""}; scanf("%d
原创 PAT-B1043
#include<stdio.h> #include<string.h> int main(){ int i, len, ascall[130]={0}; char maxc,s[10010]; gets(s); len=strlen(s
原创 PAT-B1048
#include<stdio.h> #include<string.h> void reverse(char s[]){ //實驗證明 A B位數不足的補0 int ll=strlen(s); for(int i=0;
原创 PAT-B1045
#include<stdio.h> #include<algorithm> using namespace std; int a[100010]={0},maxx[100010]={0},minn[100010]={0},ans[1000
原创 CentOS7 v2入門
更換3.10.0-327.el7.x86_64內核 rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-3.10.0-229.1.2.el7.x86_64.rpm
原创 CentOS 7 開啓Aria2
參考 https://cloud.tencent.com/developer/labs/lab/10428 aria2c --enable-rpc --rpc-listen-all --rpc-allow-origin-all -
原创 從CentOS 7 快速下載大文件
安裝nodejs yum install npm nodejs-legacy 安裝served npm install -g served 啓動服務器 screen -S served 待下載文件的目錄下運行 served 666
原创 CentOS_6
CentOS_6 x64 sudo wget https://gist.githubusercontent.com/grasses/b1837aab1ce2149148d49dd458b483d1/raw/f9ebfc3a02fa
原创 CentOS 7 SS
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh
原创 PAT-B1038
#include<stdio.h> int main(){ int i, n, k, temp, grade[105]={0}; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&temp);
原创 PAT-B1046
#include<stdio.h> int main(){ int i, j, n, jia=0, yi=0, a[110][4]; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<4;j++)