随笔分类 -  前缀和

DAY6 - T1
摘要:T1: 题目 题目描述 张北蚤的部队有 n 个跳蚤,散步在平坦宇宙母舰上,母舰为无线平面。每一 个跳蚤的坐标为(x[i],y[i]).(保证 x[i],y[i]为正奇数) 没有两个跳蚤在同一位置。 张北蚤想要划两条直线,x=a,y=b.(a,b 为正偶数) 两条线交于(a,b),将部队分为四个部分。 阅读全文

posted @ 2020-08-10 14:12 LT-Y 阅读(81) 评论(0) 推荐(0)

末了 endless - 2020 NOI Online #2 (入门组)
摘要:题目:https://www.luogu.com.cn/problem/P6473 题解 前缀和 + 二分 dp[i] 表示用i个魔法,最多需要多少年 Code #include <bits/stdc++.h> using namespace std; int mg[200010], n; doub 阅读全文

posted @ 2020-04-25 22:40 LT-Y 阅读(240) 评论(0) 推荐(0)

Subsequence / UVA - 1121
摘要:A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Wri 阅读全文

posted @ 2020-02-29 11:16 LT-Y 阅读(127) 评论(0) 推荐(0)