http://codeforces.com/contest/1333/problem/C 大致题意: 如果一个子区间,它的任何子区间和都不为0,那么它很good,求这样的子区间的个数 1 #include <bits/stdc++.h> 2 typedef long long LL; 3 const ...
分类:
其他好文 时间:
2020-04-13 00:46:19
阅读次数:
85
https://codeforces.com/group/5yyKg9gx7m/contest/275848/problem/E E. Optimal Slots The main hall of your residency is open for use by the local communi ...
分类:
其他好文 时间:
2020-04-12 22:44:47
阅读次数:
82
题意:https://codeforces.com/problemset/problem/281/C 就存个模板 1 #define IOS ios_base::sync_with_stdio(0); cin.tie(0); 2 #include <cstdio>//sprintf islower ...
分类:
其他好文 时间:
2020-04-12 22:43:43
阅读次数:
72
LeetCode 1408. String Matching in an Array数组中的字符串匹配【Easy】【Python】【字符串】 Problem "LeetCode" Given an array of string . Return all strings in which is su ...
分类:
编程语言 时间:
2020-04-12 22:29:46
阅读次数:
94
1.快速幂 37=? 【析】7 = 111 31 =3 32 =9 34 =81 …… 32^(n-1) --n:二进制位数 0~n-1 所以37=3×9×81 【例1】https://www.acwing.com/problem/content/91/ #include <iostream> us ...
分类:
其他好文 时间:
2020-04-12 20:44:59
阅读次数:
60
题目链接:http://poj.org/problem?id=3614 题意: 有C个奶牛去晒太阳 (1 <=C <= 2500),每个奶牛各自能够忍受的阳光强度有一个最小值和一个最大值,太大就晒伤了,太小奶牛没感觉。 给出了L种防晒霜及每种每种防晒霜的防晒指数,每个奶牛只能抹一瓶防晒霜,最后问能够 ...
分类:
其他好文 时间:
2020-04-12 20:24:54
阅读次数:
69
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1789 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Descripti ...
分类:
其他好文 时间:
2020-04-12 19:01:30
阅读次数:
77
地址:https://leetcode cn.com/problems/binary tree preorder traversal/submissions/ 大意:前序遍历一棵树 ` ` ...
分类:
其他好文 时间:
2020-04-12 18:34:41
阅读次数:
64
链接:https://codeforces.com/contest/1262/problem/C 题意:给一个长度为n的括号序列,你需要通过最多n次翻转操作,使得能够得到恰好k个合法括号前缀。 因为有n次操作,所以可以得到任意的序列 只需要构造合法的k个即可;k个合法前缀,所以可以构造一种方案使得前 ...
分类:
其他好文 时间:
2020-04-12 16:59:32
阅读次数:
59