- 博客(30)
- 收藏
- 关注
原创 迭代图像切割技术的交互式前景提取
----- -----《“GrabCut” — Interactive Foreground Extraction using Iterated Graph Cuts》以下是我对grabcut的简单认识grabcut是在graphcut基础上演变来的,grabcut算法利用了图像中的纹理(颜色)信息和边界(反差)信息,只要少量的用户交互操作即可得到比较好的分割结果。一、Graph cu...
2019-07-20 21:26:59 503
原创 Execution failed for task ‘:processResources‘.> Entry discovery/discovery.proto is a duplicate
【代码】Execution failed for task ‘:processResources‘.> Entry discovery/discovery.proto is a duplicate。
2023-04-13 19:18:56 577
原创 1020 Tree Traversals (25 分)
大佬真是强啊~~~Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequenc...
2019-11-13 20:51:50 104
原创 1017 Queueing at Bank (25 分)
Suppose a bank hasKwindows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have to wait in line behind the yellow li...
2019-11-13 19:28:22 116
原创 1016 Phone Bills (25 分)
一、题目A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of day when the call is ma...
2019-11-09 09:42:52 150
原创 1012 The Best Rank (25 分)
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only:C- C Programming Language,M- Mathematics (Calculus or Linear Algrbra), andE- Eng...
2019-11-08 11:01:14 88
原创 1152 Google Recruitment (20 分)
In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL consisting of the first 10-digit p...
2019-11-07 16:25:12 94
原创 1144 The Missing Number (20 分)
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case. For each case, the first line giv...
2019-11-07 11:32:39 197
原创 1140 Look-and-say Sequence (20 分)
Look-and-say sequence is a sequence of integers as the following:D, D1, D111, D113, D11231, D112213111, ...whereDis in [0, 9] except 1. The (n+1)st number is a kind of description of the nth n...
2019-11-07 10:22:06 83
原创 1136 A Delayed Palindrome (20 分)
Consider a positive integerNwritten in standard notation withk+1digitsaiasak⋯a1a0with0≤ai<10for alliandak>0. ThenNispalindromicif and only ifai=ak−ifor...
2019-11-05 16:59:16 78
原创 1112 Stucked Keyboard (20 分)
终于改出来了,咱们老百姓今儿真高兴On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen forktimes....
2019-11-01 20:08:39 104
原创 1108 Finding Average (20 分)
一直有两个测试点过不了也是怪,就不知道哪错了。The basic task is simple: givenNreal numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal...
2019-11-01 15:35:24 146
原创 求解类型转化问题
今天刷pat一道题,提交时,doube乘int的结果过了全部的测试点,而int乘double只过了一半的测试点,按理来说int精度小于double,在计算的时候不应该是自动转换吗?#include "pch.h"#include <iostream>#include<string.h>#include<stdio.h>#include<iom...
2019-11-01 10:48:11 148
原创 1096 Consecutive Factors (20 分)
Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3×5×6×7, where 5, 6, and 7 are the three consecutive numbers. Now given ...
2019-11-01 09:37:07 75
原创 1100 Mars Numbers (20 分)
People on Mars count their numbers with base 13:Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earth is called "jan, feb, mar, apr, may, jun, jly, aug, sep, oct, nov, dec" on Mar...
2019-11-01 08:59:00 87
原创 1092 To Buy or Not to Buy (20 分)
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would only sel...
2019-10-30 11:16:16 79
原创 1088 Rational Arithmetic (20 分)
这道20分的题写的颇像老太太的裹脚布 ,咋这么长For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Specification:Each inpu...
2019-10-30 10:19:13 95
原创 1084 Broken Keyboard (20 分)
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen.Now given a string that you are supposed to...
2019-10-30 09:05:10 80
原创 1081 Rational Sum (20 分)
GivenNrational numbers in the formnumerator/denominator, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case starts with a positive int...
2019-10-30 08:14:40 81
原创 1077 Kuchiguse (20 分)
The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker's personality. Such a preference is called ...
2019-10-29 17:18:41 73
原创 1073 Scientific Notation (20 分)
Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9].[0-9]+E[+-][0-9]+ which means that the i...
2019-10-29 16:28:32 84
原创 1069 The Black Hole of Numbers (20 分)
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by takin...
2019-10-29 11:33:54 98
原创 1065 A+B and C (64bit) (20 分)
Given three integersA,BandCin [−263,263], you are supposed to tell whetherA+B>C.Input Specification:The first line of the input gives the positive number of test cases,T(≤10). The...
2019-10-29 10:55:22 84
原创 1061 Dating (20 分)
周一第一天,状态太辣鸡了,题做了这么长时间。以后条件多的题一定要写出来,光看就容易出错。#include "pch.h"#include <iostream>#include<string.h>#include<stdio.h>#include<iomanip>#include<vector>#include<st...
2019-10-28 11:49:38 93
原创 1046 Shortest Distance (20 分)
大概是晚上脑子不好使了吧,动不起来了。算个距离算了半天。#include "pch.h"#include <iostream>#include<string.h>#include<stdio.h>#include<iomanip>#include<vector>#include<string>#inc...
2019-10-25 21:28:56 102
原创 1042 Shuffling Machine (20 分)
给字符串赋值赋了半天,各种string,char数组换来换去,一直烫烫烫。。。。。。。。。,要崩溃辽,后来才知道c++可以在字符串后面追加字符,唉,我这个老腊肉默默地留下了不学无术的眼泪。。。。。。我要去哭会。。。。。。。#include "pch.h"#include <iostream>#include<string.h>#include<stdio....
2019-10-25 20:02:42 77
原创 1015 Reversible Primes (20 分)
太蠢了,难怪第3个测试点一直过不了,是两个数都是素数才能输出Yes,太蠢了,弄了这么长时间。。。。。。#include "pch.h"#include <iostream>#include<string.h>#include<stdio.h>#include<iomanip>#include<vector>#includ...
2019-10-24 16:50:30 528
转载 python之pandas篇
1.Pandas概述Pandas是Python的一个数据分析包,该工具为解决数据分析任务而创建。 Pandas纳入大量库和标准数据模型,提供高效的操作数据集所需的工具。 Pandas提供大量能使我们快速便捷地处理数据的函数和方法。 Pandas是字典形式,基于NumPy创建,让NumPy为中心的应用变得更加简单。 2.Pandas引入import pandas as ...
2018-08-07 14:55:39 153
转载 Python生成器(Generator)详解
原文地址:https://blog.csdn.net/lina_acm/article/details/54410126简单易懂的生成器generator!!!!!通过列表生成式,我们可以直接创建一个列表。但是,受到内存限制,列表容量肯定是有限的。而且,创建一个包含100万个元素的列表,不仅占用很大的存储空间,如果我们仅仅需要访问前面几个元素,那后面绝大多数元素占用的空间都白白浪费了。...
2018-08-03 17:03:57 444
原创 卷积神经网络用于图像识别(一)
近期参与了学校的关于图像识别项目,但是现在不知道如何下手去做,所以先了解一些基础知识,图像识别用到了卷积神经网络,听起来好高大上哇,到底什么是卷积神经网络?上网查了许多资料,理解上仍有偏差,于是,有个小白下决心一定要好好研究研究。什么是卷积???只看数学符号,卷积是抽象的,但是,我们可以通过现实中的意义,来习惯卷积这种运算。从数学上讲,卷积就是一种运算。我们称 为 的卷积。其连...
2018-07-25 21:22:33 6693
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人