自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 资源 (3)
  • 收藏
  • 关注

转载 素数筛法+素数数组的保存

#include<iostream>using namespace std;const int MAXN =10000;int prime_[MAXN];bool vis[MAXN];int get_prime_list(int n){ int c=0; int m = sqrt(n+0.5); memset(vis,0,sizeof(vis)); for(int ...

2019-02-28 21:07:44 236

翻译 食物链 POJ - 1182

食物链POJ - 1182动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述:第一种说法是"1 X Y",表示X和Y是同类。第二种说法是"2 X Y",表示X吃Y。此人对N个动物,用...

2019-02-26 22:56:24 104

翻译 G - 逃生 HRBUST - 2074

G - 逃生 HRBUST - 2074 小A沦落到了一个迷宫之中,这个迷宫由n*m个格子构成,有些格子是不能通过的,现在他要从迷宫入口(1,1)的格子走到迷宫出口(n,m)的格子。因为小A的方向感很弱,转多了会晕,所以他走到目的地的时候,最多能转z次,否则他就永远晕倒在原地了,到了出口也没法出去了。 请你告诉他最少能经过多少个格子走出迷宫。 小Y从(1,1)出发到达的...

2019-02-26 20:28:54 265

翻译 Paintball

E - Paintball HDU - 3767 题目大意:给定:设定 一个1000 *1000 大小的区域范围对应的坐标左下角(0,0) 右上角(1000,1000) 并给定一个数 N ,给出 N 组数据,每组数据 分别为 x坐标 y坐标 和对应的攻击范围 R  这里描述的是一个圆的坐标和对应的范围区域大小要求:要求你从区域的最左边 通往区域的最右边并且不...

2019-02-26 08:16:27 446

转载 实值函数相对于向量和矩阵的梯度

转自 张贤达 矩阵分析与应用 P258 

2019-02-25 10:49:44 1835 2

原创 Q - Period

Q - Period For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That is,...

2019-02-24 18:09:00 237

翻译 D - Copying Books

D - Copying Books Before the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so called scribers. The scriber had been given ...

2019-02-21 16:55:36 294

翻译 K - 不可摸数

s(n)是正整数n的真因子之和,即小于n且整除n的因子和.例如s(12)=1+2+3+4+6=16.如果任何 数m,s(m)都不等于n,则称n为不可摸数. Input包含多组数据,首先输入T,表示有T组数据.每组数据1行给出n(2<=n<=1000)是整数。Output如果n是不可摸数,输出yes,否则输出noSample Input3258Sam...

2019-02-20 20:42:11 152

翻译 Evacuation POJ - 3057

Evacuation POJ - 3057 Fires can be disastrous, especially when a fire breaks out in a room that is completely filled with people. Rooms usually have a couple of exits and emergency exits, but with...

2019-02-19 11:08:43 208

翻译 Asteroids POJ - 3041

Asteroids POJ - 3041 Bessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <= N <= 500). The grid contains K asteroids (1 <= K <= 1...

2019-02-17 22:56:26 220

翻译 B - Segment Sum CodeForces - 1073E

B - Segment Sum CodeForces - 1073E You are given two integers ll and rr (l≤rl≤r). Your task is to calculate the sum of numbers from ll to rr (including ll and rr) such that each number contains at...

2019-02-08 17:46:26 253

原创 吉哥系列故事——恨7不成妻 HDU - 4507

吉哥系列故事——恨7不成妻 HDU - 4507    单身!   依然单身!   吉哥依然单身!   DS级码农吉哥依然单身!   所以,他生平最恨情人节,不管是214还是77,他都讨厌!      吉哥观察了214和77这两个数,发现:   2+1+4=7   7+7=7*2   77=7*11   最终,他发现原来这一切归根到底都是因为和7有关!所以,他现在甚...

2019-02-08 10:52:08 289

翻译 Round Numbers POJ - 3252

Round Numbers POJ - 3252 The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, Paper, Scissors', 'Ro, Sham, Bo', and a host of ...

2019-02-06 13:28:53 276

翻译 F(x) HDU - 4734

F(x) HDU - 4734 For a decimal number x with n digits (A nA n-1A n-2 ... A 2A 1), we define its weight as F(x) = A n * 2 n-1 + A n-1 * 2 n-2 + ... + A 2 * 2 + A 1 * 1. Now you are given two numbers...

2019-02-05 21:53:19 228

翻译 D - DomiNo Grid ZOJ - 2925

D - DomiNo Grid ZOJ - 2925 Dominoes are small, flat, rectangular-shaped game pieces. Domino pieces are usually twice as long as they are wide and are usually made to be exactly half as thick as th...

2019-02-03 10:51:32 189

翻译 A - Shaass and Lights

 A - Shaass and Lights CodeForces - 294C  There are n lights aligned in a row. These lights are numbered 1 to n from left to right. Initially some of the lights are switched on. Shaass wants t...

2019-02-01 10:48:38 623

install_docker.sh

ubuntu 系统下 docker 和 nvidia-docker 一键安装脚本 使用: sh install_docker.sh

2019-12-11

对数几率回归练习训练集和测试集

对数几率回归练习数据,对应的两个txt文件,有测试数据和训练数据,对应的每一行是数据集, 训练集有三列,最后一列是label ,其他两个是特征, 测试集有2列,都是特征

2019-04-12

对数几率回归练习数据

对数几率回归练习数据,对应的两个txt文件,有测试数据和训练数据,对应的每一行是数据集, 训练集有三列,最后一列是label ,其他两个是特征, 测试集有2列,都是特征

2019-04-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除