转自 http://www.cnblogs.com/MyLove-Summer/p/5215287.html Linux下的网络编程指的是socket套接字编程,入门比较简单。 1. socket套接字介绍 socket机制其实就是包括socket, bind, listen, connect, a ...
分类:
系统相关 时间:
2017-07-31 14:48:03
阅读次数:
295
Problem Description Derek and Alfia are good friends.Derek is Chinese,and Alfia is Austrian.This summer holiday,they both participate in the summer ca ...
分类:
其他好文 时间:
2017-07-30 21:10:05
阅读次数:
258
It has been said that a watch that is stopped keeps better time than one that loses 1 second per day. The one that is stopped reads the correct time t ...
分类:
其他好文 时间:
2017-07-29 17:38:56
阅读次数:
136
题目: Derek and Alfia are good friends.Derek is Chinese,and Alfia is Austrian.This summer holiday,they both participate in the summer camp of Borussia D ...
分类:
其他好文 时间:
2017-07-27 15:43:29
阅读次数:
425
湫湫系列故事——消灭兔子 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2992 Accepted Submission(s): 987 Pro ...
分类:
其他好文 时间:
2017-07-27 00:48:07
阅读次数:
237
After going through the receipts from your car trip through Europe this summer, you realised that the gas prices varied between the cities you visited ...
分类:
其他好文 时间:
2017-07-26 22:02:42
阅读次数:
225
A UVA - 725 输入一个数n求是否有abcde/fghij=n,abcdefghij都是不同的数字,有的全部输出,没有的就按格式输出。 暴力可以做时间为10!。 BHDU - 2546 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或 ...
分类:
其他好文 时间:
2017-07-25 21:11:23
阅读次数:
154
A: B:按题意直接暴力找符合题意的数的个数 #include <bits/stdc++.h> #include <cstring> #include <iostream> #include <algorithm> #define foror(i,a,b) for(i=a;i<b;i++) #def ...
分类:
其他好文 时间:
2017-07-18 00:17:31
阅读次数:
201
A:树形DP 给出一棵树,但是它的边是有向边,选择一个城市,问最少调整多少条边的方向能使一个选中城市可以到达所有的点,输出最小的调整的边数,和对应的点 要改变的边的权值为1,不需要改变的边的权值为0, 两次dfs 第一次算出以1点为根节点到所有点要改变的边数,第二次以1为根节点向下遍历节点 算出每一 ...
分类:
其他好文 时间:
2017-07-18 00:08:31
阅读次数:
163
B:读懂题意模拟 #include <bits/stdc++.h> #include <cstring> #include <iostream> #include <algorithm> #define foror(i,a,b) for(i=a;i<b;i++) #define foror2(i,a ...
分类:
其他好文 时间:
2017-07-17 23:55:24
阅读次数:
258