码迷,mamicode.com
首页 >  
搜索关键字:reversible primes    ( 347个结果
tf.nn.conv2d
import numpy as npfilter_primes = np.array([2., 3., 5., 7., 11., 13.], dtype=np.float32)x = tf.constant(np.arange(1, 13+1, dtype=np.float32).reshape([ ...
分类:其他好文   时间:2019-05-29 18:18:46    阅读次数:113
Codeforces Round #556 (Div. 2) C. Prefix Sum Primes
题目大意让你改变数组的排序,使前缀和的素数最多; 这是一道模拟题,让你通过判断1和2的个数来解决, 只要特判一下1的个数是零的时候,2的个数是零的时候,或者1只有一个而2的个数又不是0个的时候,剩下的情况我们只有把1的个数分奇数和偶数来考虑,大致思路是这样,接下来就看代码吧 ...
分类:其他好文   时间:2019-05-02 09:27:44    阅读次数:110
CF1149A Prefix Sum Primes
思路: 质数一定是奇数。实现: ...
分类:其他好文   时间:2019-05-01 01:44:55    阅读次数:136
Codeforces Round #556 (Div. 2) - C. Prefix Sum Primes(思维)
Problem Codeforces Round #556 (Div. 2) - D. Three Religions Time Limit: 1000 mSec Problem Description Input Output Sample Input 51 2 1 2 1 Sample Outp ...
分类:其他好文   时间:2019-04-30 23:36:48    阅读次数:147
poj3292(筛法+打表)
题目链接:https://vjudge.net/problem/POJ-3292 题意:定义4n+1数(简称H数),H数分为三类:unit,即为1; H-primes,只能分解为1×自身,类似于我们平时说的素数; H-composites,除unit和H-primes数以外的H数。输入h,求[1,h ...
分类:其他好文   时间:2019-04-13 10:29:16    阅读次数:125
c语言--查找某个区间的质数
#include #include struct int_e{ int *p; int length; }; int is_prime(int *primes,int length,int num){ int i; for(i=0;i<length;i++){ if(*(primes+i)){ if... ...
分类:编程语言   时间:2019-03-04 11:13:02    阅读次数:209
三月pat(转)
转自https://blog.csdn.net/weixin_40688413/article/details/88082779 担心别人删除了就找不到了。因为九月要考。 7-1 Sexy Primes (20 分)Sexy primes are pairs of primes of the for ...
分类:其他好文   时间:2019-03-03 20:39:25    阅读次数:161
PAT A1015 Reversible Primes (20 分)
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:其他好文   时间:2019-02-15 19:50:49    阅读次数:190
poj2109 【贪心】
Current work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area h ...
分类:其他好文   时间:2019-02-07 10:50:51    阅读次数:129
Semi-prime H-numbers POJ - 3292 打表(算复杂度)
题意:参考https://blog.csdn.net/lyy289065406/article/details/6648537 一个H-number是所有的模四余一的数。 如果一个H-number是H-primes 当且仅当它的因数只有1和它本身(除1外)。 一个H-number是H-semi-pr ...
分类:其他好文   时间:2019-01-16 22:56:30    阅读次数:229
347条   上一页 1 ... 3 4 5 6 7 ... 35 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!