原创 PAT 1031 Hello World for U 翻譯 分析 代碼

#include<stdio.h> #include<string.h> int main() { int i,j,n1,n2,n3; char b[40][40]; char a[100]; gets(a); int le

原创 PAT 1005 Spell It Right 翻譯 分析 代碼

我宣佈,c++天下第一,真的是好簡單,寥寥數語就把程序描繪的淋漓盡致。 Given a non-negative integer N, your task is to compute the sum of all the digits o

原创 PAT 1002 a+b for polynomials 翻譯 分析 代碼

題目:1002 a+b for polynomials (25)(25 分)【多項式的a+b形式】This time, you are supposed to find A+B where A and B are two polynomi

原创 PAT 1001 a+b 翻譯 分析 代碼

題目:1001 A+B Format (20)(20 分)【具有格式的a+b】Calculate a + b and output the sum in standard format -- that is, the digits mus

原创 PAT 1025 Pat betting 翻譯 分析 代碼

#include<cstdio> #include<cstring> #include<algorithm> using namespace std; struct student{ char id[15] ; //考生學號

原创 PAT 1036 Boys and girls 翻譯 分析 代碼

#include<cstdio> struct acw{ char id[15]; char name[15]; int sorce; }F,M,temp; void init(){ F.sorce=-1,M.sorce=

原创 PAT 1046 Shortest Distance 翻譯 分析 代碼

題目:1046 Shortest Distance (20)(20 分)【最短路徑】The task is really simple: given N exits on a highway which forms a simple cy

原创 PAT 1011 world cup betting 翻譯 分析 代碼

#include<cstdio> int main(){ int i,j,wtf[5]; char tit[3]={'W','T','L'}; double ans=1.0,b,temp; for(i=0;i<3;i++) {

原创 PAT 1065 a+b>c 64bit 翻譯 分析 代碼

題目:1065 a+b>c 64bit (20)(20 分)【加值溢出】Given three integers A, B and C in [-2^63^, 2^63^], you are supposed to tell whethe

原创 PAT 1009 a*b for polynomials 翻譯 分析 代碼

題目: 1009 Product of Polynomials (25)(25 分)【多項式的a*b形式】This time, you are supposed to find A*B where A and B are two poly

原创 codeup hashtable_a

#include<cstdio> const int max =210; int hashtable[max]={0}; int main(){ int n,m,a[max],i; scanf("%d %d",&n,&m);

原创 PAT 1006 sign in and sign out 翻譯 分析 代碼

#include<cstdio> struct acw{ char id[16] ; int hh,mm,ss; }first,last,temp; bool cmp (acw a,acw b) { if(a.hh!=b.hh

原创 PAT 1042 shuffling machine 翻譯 分析 代碼

題目:1042 shuffling machine (20)(20 分)【洗牌程序】A given order is a permutation of distinct integers in [1, 54]. If the number

原创 linux 自學日記—— DNS劫持

攻擊者     kali     ip:192.168.5.128 受迫者      win7     ip:192.168.5.129 首先配置ettercap leafpad /etc/ettercap/etter.dns *  

原创 linux kali 自學日記

初步入門 linux kali之arp嗅探 攻擊者     kali     ip:192.168.5.128 受迫者      win7     ip:192.168.5.129 使用工具ettercap  利用ettercap的中間