#include#includechar str[30]; //输入的数字int tmp[30]; //*2后逆序的数字int cntstr[10]; //输入数字0-9的个数int tmpI=0,jin=0; //...
分类:
其他好文 时间:
2015-03-11 18:46:58
阅读次数:
114
#include#includeusing namespace std;typedef long long ll; //【skill】重命名struct num{ ll zi,mu; //分子分母};ll gcd(ll a,ll b) //求最大公约数{ return ...
分类:
其他好文 时间:
2015-03-11 16:33:00
阅读次数:
145
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee...
分类:
其他好文 时间:
2015-03-11 14:57:06
阅读次数:
154
一 从TS流开始 数字电视机顶盒接收到的是一段段的码流,我们称之为TS(Transport Stream,传输流),每个TS流都携带一些信息,如Video、Audio以及我们需要学习的PAT、PMT等信息。因此,我们首先需要了解TS流是什么,以及TS流是怎样形成、有着怎样的结构。(一) TS流、PS...
分类:
其他好文 时间:
2015-03-11 12:36:20
阅读次数:
309
#include#include#includeusing namespace std;const int MAX=1010;int n,m,k; //城市数,高速公路数,查询次数int DELETE; //要删除的点vector ADJ[MAX]; //邻...
分类:
其他好文 时间:
2015-03-11 10:43:07
阅读次数:
140
#include#include#include#includeusing namespace std;bool check(char a) //判断是否为有效字符{ if(isdigit(a) || isalpha(a)) return true; return fal...
分类:
其他好文 时间:
2015-03-11 00:34:32
阅读次数:
193
#include#includeusing namespace std;const int MAX=0x3fffffff;int main(){ int m,n; map count; //数字与出现次数的map映射 scanf("%d%d",&m,&n); for(int i...
分类:
其他好文 时间:
2015-03-11 00:26:16
阅读次数:
148
#includeint main(){ int m,n,ans,tmp,times=0; scanf("%d%d",&m,&n); for(int i=0 ; i<n ; ++i) //【思维】题目找出现次数最多的一个,找到不同的,次数减少1,减少到0就换成输入的数字。找到相同的数字,次...
分类:
其他好文 时间:
2015-03-10 23:03:35
阅读次数:
171
#include#include#include#includeusing namespace std;int n;string deal(string s,int &e) //【思维】1:吸收多余0:。2:找到“.”判断与1的大小。3:去除“.”的同时统计10的指数(正负与st...
分类:
其他好文 时间:
2015-03-10 23:03:07
阅读次数:
365
#include#include#include#includeusing namespace std;const int MAX=40010;int n,k; //n个人,k门课char name[MAX][5]; //存n个人的名字vector course[MAX]...
分类:
其他好文 时间:
2015-03-10 21:05:37
阅读次数:
151