Problem Description: Your are given an array of positive integers nums. Count and print the number of (contiguous) subarrays where the product of all ...
分类:
其他好文 时间:
2019-03-29 14:46:24
阅读次数:
161
1. 什么是ROC曲线? ROC曲线是Receiver operating characteristic curve的简称,中文名为“受试者工作特征曲线”。ROC曲线源于军事领域,横坐标为假阳性率(False positive rate,FPR),纵坐标为真阳性率(True positive rat ...
分类:
其他好文 时间:
2019-03-24 09:16:48
阅读次数:
300
A sequence X_1, X_2, ..., X_n is fibonacci-like if: n >= 3 X_i + X_{i+1} = X_{i+2} for all i + 2 <= n Given a strictly increasing array A of positive ...
分类:
其他好文 时间:
2019-03-23 12:58:30
阅读次数:
118
C - Digital Roots Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single ...
分类:
其他好文 时间:
2019-03-17 19:39:55
阅读次数:
179
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example ...
分类:
其他好文 时间:
2019-03-16 09:42:45
阅读次数:
146
SOJ 3085: windy's cake V http://acm.scu.edu.cn/soj/problem.action?id=3085 Given a list of $n$ positive integers $num[1], ..., num[n]$, denote the scor ...
分类:
其他好文 时间:
2019-03-14 13:42:46
阅读次数:
164
Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT contain consecutive ...
分类:
其他好文 时间:
2019-03-09 23:16:42
阅读次数:
170
传送门:点我 A. Lengthening Sticks time limit per test 1 second You are given three sticks with positive integer lengths of a,?b, and c centimeters. You can ...
分类:
其他好文 时间:
2019-03-09 11:37:18
阅读次数:
188
Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive intege ...
分类:
其他好文 时间:
2019-03-08 09:20:26
阅读次数:
120
Apart from the novice programmers, all others know that you can’t exactly represent numbers raised to some high power. For example, the C function pow ...
分类:
其他好文 时间:
2019-03-04 11:12:47
阅读次数:
169