![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TopCoder SRM
文章平均质量分 86
f22fbi
这个作者很懒,什么都没留下…
展开
-
SRM 397 DIV2 [500]
#includeiostream>#includequeue>#includevector>#includeset>#includealgorithm>using namespace std;vectorint> swap(vectorint> a,int beg,int len)...{ int mid=len/2,end=beg+len-1;; for (int i=0;原创 2008-04-28 19:18:00 · 494 阅读 · 0 评论 -
SRM 397 DIV2 [1000]
#includeiostream>#includevector>#includeset>#includealgorithm>using namespace std;class CollectingMarbles ...{public: int mostMarbles(vectorint>, int, int); int run(int, int, int);};int dp[819原创 2008-05-02 00:12:00 · 465 阅读 · 0 评论 -
SRM 400 DIV2 [500]
#includeiostream>#includestring>#includevector>#includeset>#includealgorithm>#includememory.h>#includecmath>#includecstdio>using namespace std;long long num;bool is(int p,int q)...{ long long tem原创 2008-05-01 23:59:00 · 528 阅读 · 0 评论 -
SRM 400 DIV2 [250]
#includeiostream>#includevector>#includecmath>using namespace std;class GrabbingTaxi...{public: int minTime(vector int> tXs, vector int> tYs, int gX, int gY, int walkTime, int taxiTime) ...{原创 2008-05-01 23:57:00 · 463 阅读 · 0 评论 -
SRM 399 DIV2 [250]
#includeiostream>#includevector>using namespace std;class CircularLine...{public: int longestTravel(vectorint> t) ...{ int len=t.size(); int longest=0; for (int i=0;i!=len原创 2008-04-26 15:05:00 · 443 阅读 · 0 评论 -
SRM 397 DIV 2 [250]
#includeiostream>#includestring>#includemap>using namespace std;class BreakingTheCode...{public: string decodingEncoding(string code,string message) ...{ string res; string aa[]=原创 2008-04-25 17:34:00 · 417 阅读 · 0 评论 -
SRM 398 DIV2 [250]
#includeiostream>#includealgorithm>#includevector>using namespace std;class MinDifference...{public: int closestElements(int A0,int X,int Y,int M,int n) ...{ vectorint> ivec(n);原创 2008-04-26 13:46:00 · 388 阅读 · 0 评论 -
SRM 114 DIV2 [550]
#includeiostream>#includevector>#includestring>using namespace std;class BinaryCode...{public: vectorstring> decode(string message) ...{ vectorstring> temp; temp.push_back(messag原创 2008-04-25 17:27:00 · 395 阅读 · 0 评论 -
SRM 114 DIV 2 [200]
#includeiostream>#includestring>#includecstdlib>using namespace std;class Time...{public: string whatTime(int seconds) ...{ int h,m,s; h=seconds/3600; seconds=seconds%3600原创 2008-04-25 17:25:00 · 422 阅读 · 0 评论 -
SRM 387 DIV2 [250]
#includeiostream>#includevector>using namespace std;class GuessingNextElement...{public: int guess(vectorint> A) ...{ if (A[1]-A[0]==A[2]-A[1])...{ return A[A.size()-1]+A[1]-原创 2008-04-26 16:24:00 · 659 阅读 · 0 评论 -
SRM 387 DIV2 [600]
#includeiostream>#includestring>#includevector>using namespace std;class MarblesRegroupingEasy...{public: int minMoves(vectorstring> boxes) ...{ int res,len; res=boxes.size()-1;原创 2008-04-27 19:32:00 · 528 阅读 · 0 评论