上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: You are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a set of possible 阅读全文
posted @ 2019-10-08 17:05 小草今天又在摸鱼吗 阅读(131) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<algorithm> using namespace std; int ans=0,tot=0; const int N = 1e5; int f[200]; struct ac{ int v,u,w; }edge[N]; bool cmp(a 阅读全文
posted @ 2019-10-08 16:57 小草今天又在摸鱼吗 阅读(100) 评论(0) 推荐(0) 编辑
摘要: http://www.cplusplus.com 搜了才发现map的成员函数这么多orz,跟着cplusplus按字典序走一遍叭(顺序有微调orz <1> map::at (c++11) <2> map::begin/end <3>map::cbegin(c++11) <4> map::clear 阅读全文
posted @ 2019-10-03 17:02 小草今天又在摸鱼吗 阅读(242) 评论(0) 推荐(1) 编辑
摘要: https://codeforces.com/contest/1234/problem/A A. Equalize Prices Again 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 int 阅读全文
posted @ 2019-10-03 12:19 小草今天又在摸鱼吗 阅读(224) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1228/problem/A A. Distinct Digits 超级简单嘻嘻,给你一个l和r然后寻找一个数,这个数要满足的条件是它的每一位的数字不相同,找出满足要求的最小的那个数输出,没有找到就输出-1; 1 #include<bit 阅读全文
posted @ 2019-10-02 16:59 小草今天又在摸鱼吗 阅读(157) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/article/371 阅读全文
posted @ 2019-09-29 15:43 小草今天又在摸鱼吗 阅读(100) 评论(0) 推荐(0) 编辑
摘要: POJ 2253 Frogger Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans t 阅读全文
posted @ 2019-09-29 15:42 小草今天又在摸鱼吗 阅读(127) 评论(0) 推荐(0) 编辑
摘要: POJ2387 Til the Cows Come Home Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes 阅读全文
posted @ 2019-09-29 15:40 小草今天又在摸鱼吗 阅读(155) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1216/problem/A A. Prefixes 题意大概就是每个偶数位置前面的ab数目要相等,很水,被自己坑了 1是没看见要输出修改后的字符串,2是修改的写反了。。3是忘记清零了?,生生把罚时拖的。。。 本来四分钟的题的。。然后罚时 阅读全文
posted @ 2019-09-22 15:48 小草今天又在摸鱼吗 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 我真的一写博客我就难受 但是不写又感觉自己没学进去 都已经这个时候了快速幂我都写不快 码字速度还星一敲代码我就废 还是练习太少了 自己好好反思 但愿还能补救一下 回到正题 题目描述 输入b,p,k的值,求b^p mod k的值。其中b,p,k*k为长整型数。 输入b,p,k的值,求b^p mod k 阅读全文
posted @ 2019-09-22 14:44 小草今天又在摸鱼吗 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页