For a number,if the length of continuous odd digits is even and the length of continuous even digits is odd,we call it odd-even number.Now we want to
转载 2018-05-19 19:29:00
72阅读
odd-even numberTime Limit: 2000/1000 MS (Java/Others)    Memory
原创 2023-02-07 16:59:54
60阅读
题意:求一个区间内满足下面条件的数的个数:数位中连续的奇数个数为偶数,连续的
原创 2022-08-17 15:33:34
30阅读
odd even number 题目连接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5898 Description For a number,if the length of continuous odd digits is even and
IT
原创 2021-07-16 11:16:48
100阅读
题意:给定一个区间,统计连续是奇数的个数是偶数,连续是偶数的个数是奇数的个数。 析:dp[i][j][k] 表示前 i 位,前一位是 j ,连续 k 次。 代码如下:
转载 2016-09-21 22:26:00
69阅读
odd-even number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description For a number,if the length of con
转载 2017-03-23 18:51:00
168阅读
2评论
套路题,维护前面的奇偶性和长度 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pll; const int N=1e5+10; int s[N]; ll f[30][2
转载 2020-12-10 19:46:00
143阅读
2评论
Description给定一棵n个节点的带边权树,m组询问,每次询问两个数u,k,求出u本树)的节点到它的距离,排好序。查询某一个点的某一个...
原创 2018-10-15 15:50:16
52阅读
题目题目大意给你带边权的树,然后有多高询问,每次询问...
转载 2018-10-19 20:58:00
94阅读
For a number,if the length of continuous odd digits is even and the length of continuous even digits is odd,we call it odd-even number.Now we want to know the amount of odd-even number between L,R(1&l
转载 2017-08-04 12:35:00
53阅读
odd-even number Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Su
原创 2022-04-19 17:35:12
63阅读
Problem Description For a number,if t
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5898一道比较简单的数位DP,需要做的就是记录当前位的
原创 2022-08-30 10:52:18
53阅读
Number SequenceTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5898Accepted Submission(s): 2652Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 100
转载 2012-08-06 21:17:00
70阅读
2评论
问题描述作为一个优秀的菜鸟,内存爆炸这个坑一定会踩一下的: 以前的训练数据都是几千的样本,直接用numpy读取到内存中,不会出什么问题今天突然读取一个4万的数据集,我算了一下,我的样本是227 * 227 * 3的,所以一个样本大小大约是 (227 * 227 * 3 * 8)byte = 151KB 左右,4万张图片就是5898MB,相当于6个G了(不知道计算的对不对,难怪我8个G的内存一下就跑
转载 2023-12-01 09:23:20
110阅读