problem

Problem: labels file not mathch

匿名 (未验证) 提交于 2019-12-02 23:26:52
版权声明:学无止境,好好学习 https://blog.csdn.net/m0_38116269/article/details/88680530 I0320 09 : 32 : 31.106779 40684 upgrade_proto . cpp : 79 ] Attempting to upgrade batch norm layers using deprecated params : / media / seu / Linux - doc / wwh / caffe / models / resnet - 18 / resnet_18_iter_49995 . caffemodel I0320 09 : 32 : 31.106824 40684 upgrade_proto . cpp : 82 ] Successfully upgraded batch norm layers using deprecated params . I0320 09 : 32 : 31.114569 40684 net . cpp : 746 ] Ignoring source layer loss F0320 09 : 32 : 31.117251 40684 classify . cpp : 82 ] Check failed : labels_ . size ( ) == output

3834 Problem D Haffman编码

匿名 (未验证) 提交于 2019-12-02 23:26:52
问题 D: Haffman编码 时间限制: 1 Sec 内存限制: 128 MB 提交: 60 解决: 46 [ 提交 ][ ״̬ ][ 讨论版 ][命题人:外部导入] 题目描述 哈弗曼编码大家一定很熟悉吧(不熟悉也没关系,自己查去。。。)。现在给你一串字符以及它们所对应的权值,让你构造哈弗曼树,从而确定每个字符的哈弗曼编码。当然,这里有一些小规定: 1.规定哈弗曼树的左子树编码为0,右子树编码为1; 2.若两个字符权值相同,则ASCII码值小的字符为左孩子,大的为右孩子; 3.创建的新节点所代表的字符与它的做孩子的字符相同; 4.所有字符为ASCII码表上32-96之间的字符(即“ ”到“`”之间的字符)。 输入 输入包含多组数据(不超过100组) 每组数据第一行一个整数n,表示字符个数。接下来n行,每行有一个字符ch和一个整数weight,表示字符ch所对应的权值,中间用空格隔开。 输入数据保证每组测试数据的字符不会重复。 输出 对于每组测试数据,按照输入顺序输出相应的字符以及它们的哈弗曼编码结果,具体格式见样例。 样例输入 3 a 10 b 5 c 8 4 a 1 b 1 c 1 d 1 样例输出 a : 0 b : 10 c : 11 a : 00 b : 01 c : 10 d : 11 #define _CRT_SECURE_NO_WARNINGS #include

Codeforces Contest 1107 problem G Vasya and Maximum Profit―― 枚举每个不可控制的量找它所对应区间的数的最大值

匿名 (未验证) 提交于 2019-12-02 23:06:17
Vasya got really tired of these credits (from problem F) and now wants to earn the money himself! He decided to make a contest to gain a profit. Vasya has n problems to choose from. They are numbered from 1 to n. The difficulty of the i-th problem is di. Moreover, the problems are given in the increasing order by their difficulties. The difficulties of all tasks are pairwise distinct. In order to add the i-th problem to the contest you need to pay ci burles to its author. For each problem in the contest Vasya gets a burles. In order to create a contest he needs to choose a consecutive

1326 Problem A 算法2-8~2-11:链表的基本操作

故事扮演 提交于 2019-12-02 05:19:35
问题 A: 算法2-8~2-11:链表的基本操作 时间限制: 1 Sec 内存限制: 32 MB 提交: 81 解决: 44 题目描述 链表是数据结构中一种最基本的数据结构,它是用链式存储结构实现的线性表。它较顺序表而言在插入和删除时不必移动其后的元素。现在给你一些整数,然后会频繁地插入和删除其中的某些元素,会在其中某些时候让你查找某个元素或者输出当前链表中所有的元素。 下面给你基本的算法描述: 图1:链表类型的定义以及获得链表元素的算法描述 图2:链表的插入算法描述 图3:链表的删除算法描述 图4:链表的创建算法描述 输入 输入数据只有一组,第一行有n+1个整数,第一个整数是这行余下的整数数目n,后面是n个整数。这一行整数是用来初始化列表的,并且输入的顺序与列表中的顺序相反,也就是说如果列表中是1、2、3那么输入的顺序是3、2、1。 第二行有一个整数m,代表下面还有m行。每行有一个字符串,字符串是“get”,“insert”,“delete”,“show”中的一种。如果是“get”或者“delete”,则其后跟着一个整数a,代表获得或者删除第a个元素;如果是“insert”,则其后跟着两个整数a和e,代表在第a个位置前面插入e;“show”之后没有整数。 输出 如果获取成功,则输出该元素;如果删除成功则输出“delete OK”;如果获取失败或者删除失败,则输出“get fail

A Simple Problem with Integers OpenJ_Bailian - 3439 (线段树)

空扰寡人 提交于 2019-11-29 06:04:34
思路:线段树,区间更新,区间查找 1 #include<iostream> 2 #include<vector> 3 #include<string> 4 #include<cmath> 5 #include<set> 6 #include<algorithm> 7 #include<cstdio> 8 #include<map> 9 #include<cstring> 10 #include<list> 11 12 #define MAXSIZE 100010 13 14 using namespace std; 15 16 long long tree[4*MAXSIZE]; 17 long long lz[4*MAXSIZE]; 18 int N, Q; 19 20 void init() 21 { 22 memset(tree, 0, sizeof(tree)); 23 memset(lz, 0, sizeof(lz)); 24 } 25 26 void build(int node, int l, int r) 27 { 28 if(l == r) 29 { 30 scanf("%lld", &tree[node]); 31 return; 32 } 33 34 int mid = (l+r)/2; 35 build(node*2, l, mid); 36 build

CentOS7- ABRT has detected 1 problem(s). For more info run: abrt-cli list --since 1548988705

二次信任 提交于 2019-11-28 07:37:50
CentOS7重启后,xshell连接,后出现ABRT has detected 1 problem(s). For more info run: abrt-cli list --since 1548988705,即使本地登陆打开终端也不能执行指令。 在终端一直ctl+c出现bash,然后su root 之后,执行abrt-auto-reporting enabled,重登录OK。 来源: https://www.cnblogs.com/JinweiChang/p/11399414.html

25593 Problem G 例题5-7 求圆周率pi的近似值

戏子无情 提交于 2019-11-26 08:52:50
问题 G: 例题5-7 求圆周率pi的近似值 时间限制: 1 Sec 内存限制: 12 MB 题目描述 用如下公式 求圆周率PI的近似值,直到发现某一项的绝对值小于10-6为止(该项不累加)。 要求输出的结果总宽度占10位,其中小数部分为8位。 程序中使用浮点型数据时,请定义为双精度double类型。 如果需要计算绝对值,可以使用C语言数学库提供的函数fabs,如求x的绝对值,则为fabs(x). 输入 无 输出 PI=圆周率的近似值 输出的结果总宽度占10位,其中小数部分为8位。 末尾输出换行。 样例输入 无 样例输出 PI=3.14159065 经验总结 emmm,题目公式竟然都没有,实际上近似估计PI的公式有很多,这里我猜测题目的公式是这个: π/4=1-1/3+1/5-1/7+1/9+........+(-1)^(i-1)*1/(2i-1) i=1,2,3.......n; 知道公式,这题就不难做啦,在单项精度小于1e-6的时候跳出循环,然后输出结果即可~ AC代码 #include <cstdio> #include <cmath> int main() { double sum=0; for(int i=1;;i++) { if(1/(2.0*i-1)<1e-6) break; sum+=1/(2.0*i-1)*pow(-1.0,1.0*(i-1)); } printf