
C++&STL
文章平均质量分 75
algzjh
这个作者很懒,什么都没留下…
展开
-
2017湖南多校第一场-L(1011): Languages
LanguagesThe Enterprise has encountered a planet that at one point had been inhabited. The only remnant from the prior civilization is a set of texts that was found. Using a small set of keywords fou原创 2017-03-22 16:31:01 · 1393 阅读 · 0 评论 -
Gym 100553F-Filter
Problem F. FilterInput file: filter.in Output file: filter.out You are working on a new high-performance database engine — Instant Compression and Processing Codec (ICPC). ICPC stores user activity原创 2017-10-08 19:31:10 · 446 阅读 · 0 评论 -
HDU6168-Numbers
NumbersTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 439 Accepted Submission(s): 227Problem Description zk has n numbers a1,a2,…,an. Fo原创 2017-08-23 09:14:50 · 459 阅读 · 0 评论 -
HDU6180-Schedule
ScheduleTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 153428/153428 K (Java/Others) Total Submission(s): 572 Accepted Submission(s): 219Problem Description There are N schedules, the i-t原创 2017-08-25 13:38:07 · 400 阅读 · 0 评论 -
CodeForces 501C
C. Misha and Forest time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Let's define a forest as a non-directed acyclic gr原创 2016-08-22 15:32:34 · 510 阅读 · 0 评论 -
COJ1979-古怪的行列式
1979: 古怪的行列式 Time Limit: 1 Sec Memory Limit: 128 Mb Submitted: 39 Solved: 13 Description这几天,子浩君潜心研究线性代数。 行列式的值定义如下: DET 其中,τ(j1j2…jn)为排列j1j2…jn的逆序数。子浩君很厉害的,但是头脑经常短路,所以他会按照行列式值的定义去计算原创 2017-08-13 00:44:06 · 630 阅读 · 0 评论 -
COJ1974-神奇药水
神奇药水Submit Page Summary Time Limit: 1 Sec Memory Limit: 256 Mb Submitted: 183 Solved: 38 Description 对于csuxushu来说,能够在CSU(California State University)组织2017年的ACM暑期集训让他感到十分荣幸。原创 2017-07-29 19:31:32 · 522 阅读 · 0 评论 -
CF831C-Jury Marks
C. Jury Markstime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Polycarp watched TV-show where k jury members one by one rated a participant b原创 2017-07-14 10:48:13 · 925 阅读 · 0 评论 -
CF831B-Keyboard Layouts
B. Keyboard Layoutstime limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output There are two popular keyboard layouts in Berland, they differ only in le原创 2017-07-14 10:26:43 · 808 阅读 · 0 评论 -
全排列的递归与非递归写法
递归#include<iostream> #include<string> #include<cstring> using namespace std; const int MAXN=1e5; char arr[MAXN]; int cnt;void permutation(int k,int m) { if(k==m-1) { cout<<"the "<<++cnt原创 2017-06-19 09:21:29 · 591 阅读 · 0 评论 -
CodeM美团点评编程大赛资格赛C题
时间限制:1秒 空间限制:32768K 题目描述 美团点评上有很多餐馆优惠券,用户可以在美团点评App上购买。每种优惠券有一个唯一的正整数编号。每个人可以拥有多张优惠券,但每种优惠券只能同时拥有至多一张。每种优惠券可以在使用之后继续购买。当用户在相应餐馆就餐时,可以在餐馆使用优惠券进行消费。某人优惠券的购买和使用按照时间顺序逐行记录在一个日志文件中,运营人员会定期抽查日志文件看业务是否正确。业原创 2017-06-17 11:24:34 · 978 阅读 · 0 评论 -
2017计蒜之道初赛第四场-商汤科技的行人检测(简单)
商汤科技的行人检测(简单) 商汤科技近日推出的 SenseVideo 能够对视频监控中的对象进行识别与分析,包括行人检测等。在行人检测问题中,最重要的就是对行人移动的检测。由于往往是在视频监控数据中检测行人,我们将图像上的行人抽象为二维平面上若干个的点。那么,行人的移动就相当于二维平面上的变换。 在这道题中,我们将行人的移动过程抽象为 平移,有两个 移动参数:d_xdx 和 d_ydy原创 2017-05-28 21:22:32 · 1021 阅读 · 0 评论 -
中南大学第十一届大学生程序设计竞赛-COJ1898-复盘拉火车
1898: 复盘拉火车Submit Page Summary Time Limit: 1 Sec Memory Limit: 128 Mb Submitted: 2 Solved: 2 Description 小GJ和小XS没事做用扑克牌玩起了小时候的拉火车游戏。规则如下,GJ和XS交替依次把手中的牌放到桌面上,由于GJ年长,所以他总是先放。桌面上会构成一个原创 2017-04-24 20:11:04 · 839 阅读 · 0 评论 -
std::getline (string) & std::stringstream::str
#include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<sstream> using namespace std; const int MAXN=105; char s1[MAXN],s2[MAXN],s3[MAXN],s4[MAXN];int main() { string s;原创 2017-05-06 08:48:42 · 2799 阅读 · 0 评论 -
STL之heap
#include<iostream> #include<cstdio> #include<algorithm> #include<vector> using namespace std;int main() { int a[]={10,20,30,5,15}; vector<int> v(a,a+5); make_heap(v.begin(),v.end()); co原创 2017-04-17 21:10:48 · 403 阅读 · 0 评论 -
ABC085-D-Katana Thrower
传送门:Katana Thrower 知识点:STL、贪心 #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; const int MAXN=1e5+5; const int INF原创 2018-01-12 13:10:04 · 464 阅读 · 0 评论