暑期集训
文章平均质量分 64
lzuqer_
这个作者很懒,什么都没留下…
展开
-
Southern Subregion Problem L. Stock Trading Robot
模拟 #include #include #include using namespace std; int n,d,a,b; int num; int num_a = 1; int num_b = 1; int last; int cur; int main(){ //freopen("main.in","r",stdin); cin >> n >> d >> a >> b;原创 2016-08-15 19:06:13 · 274 阅读 · 0 评论 -
Southern Subregion Problem K. Road Work
贪心 #include using namespace std; const int maxn=300050; int d[maxn]; vectorL; vectorR; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ scanf("%d",&d[i]); } for(int i=1;i<=n;i++){ int r=0原创 2016-08-15 19:25:44 · 218 阅读 · 0 评论 -
Southern Subregional Problem B. Travelling Camera Problem
二分找区间 直接算 #include using namespace std; const int maxn=300050; double x[maxn]; double a[maxn]; int main(){ int n,m; double rr; //cin>>m>>n>>rr; scanf("%d%d%lf",&m,&n,&rr); double r=sqrt(rr*rr-1原创 2016-08-15 18:34:23 · 215 阅读 · 0 评论 -
Southern Subregion Problem H. Password Service
这题坑了有一会 直接粘的队友代码 WA54注意一种样例 >>>>> #include #include using namespace std; int main() { int n; cin>>n; char a[5005],ans[5005],b[5005]; cin>>a; strcpy(b,a); //cout<<b<<endl;原创 2016-08-15 19:44:26 · 310 阅读 · 0 评论 -
Southern Subregion Problem F. Judging Time Prediction
Problem F. Judging Time Prediction Input le: stdin Output le: stdout Time limit: 2 seconds Memory limit: 256 megabytes Feedback: It is not easy to predict. Do you know that the modern weather pred原创 2016-08-15 19:48:37 · 283 阅读 · 0 评论 -
Southern Subregion Problem C. Equivalent Cards
#include #include #include #include #define maxn 105 using namespace std; int n; double val[maxn]; struct Point{ double x,y; Point(double x=0.0,double y = 0.0):x(x),y(y){} void init(){ c原创 2016-08-15 19:50:56 · 216 阅读 · 0 评论 -
阶段codeforces小结
这些天除了每天的训练刷了一些的CD,最近状态奇差,那就总结一下吧 Codeforces Round #236 (Div. 2) C:这题猜了一下,大致就是让边均匀分布,构造了一下感悟了一下,挺对 D:看数据范围和时间大致是n*n的复杂度,以为是任意选取区间,后来发现必须是1-k(1 Codeforces Round #237 (Div. 2) C:根据某个点到各个点的距离恢复原图,并且保原创 2017-08-14 23:34:51 · 373 阅读 · 0 评论