码迷,mamicode.com
首页 >  
搜索关键字:calculate prime s    ( 3428个结果
leetcode-762-Prime Number of Set Bits in Binary Representation
题目描述: Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary represen ...
分类:其他好文   时间:2018-05-15 16:04:34    阅读次数:167
[USACO1.5] 回文质数
P1217 Prime Palindromes P1217 Prime Palindromes P1217 Prime Palindromes 题目描述 因为151既是一个质数又是一个回文数(从左到右和从右到左是看一样的),所以 151 是回文质数。 写一个程序来找出范围[a,b](5 <= a < ...
分类:其他好文   时间:2018-05-15 01:51:53    阅读次数:189
hdu-2886 Special Prime---数论推导
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2866 题目大意: 问你1到L中有多少个素数满足n^3 + p*n^2 = m^3(其中n,m为大于1的自然数) 解题思路: 首先简化成n^2 *( n + p ) = m^3 假设 n^2 和 n+p ...
分类:其他好文   时间:2018-05-13 23:03:25    阅读次数:162
Area of Circles II(数论)
描述 There are two circles on the plane. Now you must to calculate the area which they cover the plane. For example, in Figure 1, the area of the red re ...
分类:其他好文   时间:2018-05-13 01:08:21    阅读次数:169
C Primer Plus学习笔记(七)- C 控制语句:分支和跳转
if 语句: if 语句: if 语句被称为分支语句(branching statement)或选择语句(selection statement) if 语句的通用形式: 如果 expression 为真,则执行 statement;否则,跳过 statement 与 while 循环一样,stat ...
分类:其他好文   时间:2018-05-12 03:14:00    阅读次数:186
埃式筛法筛选素数 PAT1013
内容摘要: 素数(prime number)到底是啥数: 定义: 在大于1的自然数中,除了1和它本身以外不能再被其他数所整除。 实例化定义: 3是素数,因为它不可以被除了“1”以及自身“3”之外的数所整除。 10不是素数,因为它除了“1”以及自身“10”之外,还可以被"2",“5”等数字所整除,所以 ...
分类:其他好文   时间:2018-05-11 20:10:51    阅读次数:433
[数论][容斥原理]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-05-09 19:30:40    阅读次数:163
【C++ Primer 第10章】 1.概述
泛型算法 ...
分类:编程语言   时间:2018-05-09 16:46:01    阅读次数:147
【TOJ 1449】Area of Circles II
描述 There are two circles on the plane. Now you must to calculate the area which they cover the plane. For example, in Figure 1, the area of the red re ...
分类:其他好文   时间:2018-05-09 00:03:42    阅读次数:186
20172315『Java程序设计』课程 结对编程练习_四则运算第二周阶段总结
相关过程截图 中缀转后缀及后缀计算测试截图 题目生成截图 计算正确率截图 关键代码解释 将中缀表达式转换为后缀表达式并对后缀表达式进行计算 main类 import java.util.Scanner; public class calculate { public static void main ...
分类:编程语言   时间:2018-05-08 23:58:57    阅读次数:387
3428条   上一页 1 ... 79 80 81 82 83 ... 343 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!