寒假训练
文章平均质量分 91
RadiumYang
ACM退役打牌选手
展开
-
寒假第二周训练——STL题目汇总
MANAGERTime Limit: 1000MS Memory Limit: 10000KTotal Submissions:3112 Accepted: 1106DescriptionOne of the programming paradigm in parallel processing is the prod原创 2018-02-03 21:50:49 · 366 阅读 · 0 评论 -
寒假第四周训练——搜索笔记及杂记
1.DFS搜索图析2.BFS搜索图析3.保留16位int前八位以及后八位#include <cstdio>int main(){ int n,a,b; while(scanf("%d",&n)!=EOF) { a=n>>8&0xFF; //保留前八位 b=n&0xFF; //保留后八位 printf("%d %d\n",a,...原创 2018-02-26 11:19:14 · 170 阅读 · 0 评论 -
寒假第三周训练——栈队列题目汇总
Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42596 Accepted Submission(s): 15953Problem DescriptionAs the new term comes, t...原创 2018-02-26 12:00:42 · 383 阅读 · 0 评论 -
寒假第三周训练——二分题目汇总
1088 - Points in Segments PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBGiven n points (1 dimensional) and q segments, you have to find the number of points that lie in each ...原创 2018-02-26 14:10:01 · 241 阅读 · 0 评论 -
寒假第二周训练——STL笔记及杂记
1.multiset/set的使用#include <set>multiset<int> s; //set<int> s;区别:multiset元素可重复,set不可重复,其内容有序。set常见成员列表:begin()--返回指向第一个元素的迭代器clear()--清除所有元素count()--返回某个值元素的个数empty()--如果集合为空,返回truee...原创 2018-02-03 22:22:07 · 161 阅读 · 0 评论 -
寒假第三周训练——杂记
1.求最大公约数最小公倍数int gcd(int m,int n){ if (m==0) return n; else return gcd(n%m,m);}通常采用辗转相除法求最大公约数,此处使用了递归来实现。int gcd(int m,int n){ int t; while(m) { t=n%m; m=n; n=t;...原创 2018-02-06 23:29:34 · 286 阅读 · 0 评论 -
寒假第三周训练——尺取题目汇总
Bound FoundTime Limit: 5000MS Memory Limit: 65536KTotal Submissions:5254 Accepted:1686 Special JudgeDescriptionSignals of most probably extra-terrestrial origin have been received and digitalized by T...原创 2018-03-10 11:09:43 · 368 阅读 · 0 评论 -
寒假第四周训练——DFS题目汇总
Oil DepositsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions:20263 Accepted: 10621DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoS...原创 2018-03-16 23:24:18 · 438 阅读 · 0 评论