博客版权已保护:转载请注明出处,谢谢。

随笔分类 -  STL模板库

工欲善其事,必先利其器。STL的各种模板库set,map,vector,queue,stack,algorithm,list等等,这些一定能熟练的运用好,透彻他们之下的函数,这是解题的基础。
Andy's First Dictionary (set)
摘要:博客主要参照:https://www.cnblogs.com/yjlblog/p/6947747.html ,感谢前辈们分享的经验! 1.学会运用set容器;(有个小知识点,set容器,元素只能出现一次,并且插入可以从小到大排序) 2.学习字符函数库中常用的函数 3.学会stringstream(可 阅读全文

posted @ 2018-07-31 21:05 superhero11

Where is the Marble? (algorithm)
摘要:链接:https://vjudge.net/contest/239797#problem/A/* *这道题其实可以不用vector,直接用数组也是一样可以AC的。但是题目没有指定n的范围,所以就决定开动态数组比较保险; *学会使用freopen("in.txt","r",stdin);来输入题目的样 阅读全文

posted @ 2018-07-27 21:51 superhero11

导航