码迷,mamicode.com
首页 >  
搜索关键字:prime    ( 2475个结果
Hive 的配置说明
Hive的相关配置说明 1、Query and DDL Execution 查询和DDL操作 The default number of reduce tasks per job. Typically set to a prime close to the number of available h ...
分类:其他好文   时间:2018-10-24 15:37:39    阅读次数:384
logistic 回归(线性和非线性)
一:线性logistic 回归 代码如下: 二:非线性logistic 回归(正则化) 代码如下: ...
分类:其他好文   时间:2018-10-23 23:06:24    阅读次数:217
C++ 函数指针
以下内容参考C++ Primer Plus第六版 有了这个东西估计很多操作会方便很多. 一个比较简单的例子, 大概是包含了函数指针基本的使用吧. 声明及赋值 声明一个返回值为 参数为 标示符为 的函数指针 当然赋值时可以这样做: 当然可以使用 的自动类型推断 上面代码的最后一句改为 调用 在一个函数 ...
分类:编程语言   时间:2018-10-23 23:00:32    阅读次数:217
gcd(1,n)+gcd(2,n)....gcd(n-1,n); Uva11426
#include #define int long long using namespace std; const int maxn=4e6+100; int phi[maxn]; int prime[maxn]; int visit[maxn]; int tot=0; int num[maxn];... ...
分类:其他好文   时间:2018-10-21 15:59:34    阅读次数:200
题解报告:hdu 4135 Co-prime(容斥定理入门)
Problem Description Given a number N, you are asked to count the number of integers between A and B inclusive which are relatively prime to N.Two inte ...
分类:其他好文   时间:2018-10-19 10:14:19    阅读次数:144
【PAT】B1007 素数对猜想
1. 素数筛筛出规定范围内的所有素数存入数组 2. 遍历数组,如果满足于后边的差2,计数器加加 include const int maxn = 10000001; int prime[maxn]={0}; bool p[maxn] = {0}; int pnum =0; void Find_pri ...
分类:其他好文   时间:2018-10-18 23:58:54    阅读次数:303
【LeetCode】数学(共106题)
【2】Add Two Numbers 【7】Reverse Integer 【8】String to Integer (atoi) 【9】Palindrome Number 【12】Integer to Roman 【13】Roman to Integer 【29】Divide Two Intege ...
分类:其他好文   时间:2018-10-15 14:55:21    阅读次数:211
[leetcode]263.Ugly Number
题目 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. Exam ...
分类:其他好文   时间:2018-10-15 12:20:11    阅读次数:142
回文与素数
素数: public class Prime { public static void main(String[] args) { int b = 0; for (int i = 3; i <= 100; i++) { int a=2; for (int n = 2; n < i; n++) { i ...
分类:其他好文   时间:2018-10-14 23:34:52    阅读次数:206
素数递归统计三项代码
public static void isprime() { int n;import java.util.Scanner; public class number { public static void main(String[] args) { int i = 0; System.out.pr... ...
分类:其他好文   时间:2018-10-14 20:53:19    阅读次数:146
2475条   上一页 1 ... 43 44 45 46 47 ... 248 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!