• 等级
  • 20315 访问
  • 329 原创
  • 6 转发
  • 14582 排名
  • 10 评论
  • 8 获赞

POINTERS ON C【C和指针】

#include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<math.h> #include<set> using namespace std; const int maxn = 500+10; #define MUL...

2018-11-10 18:11:17

HDU2289 Cup 【二分】求圆台体积

Cup Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 11390    Accepted Submission(s): 3500 Problem Description The WHU ACM Team has a big cup...

2018-11-10 11:49:47

牛客网 最短路 Floyd算法 Dijkstra算法 Java大数

 链接:https://www.nowcoder.com/questionTerminal/a29d0b5eb46b4b90bfa22aa98cf5ff17 来源:牛客网 最短路径 热度指数:2992 时间限制:1秒 空间限制:65536K 算法知识视频讲解 N个城市,标号从0到N-1,M条道路,第K条道路(K从0开始)的长度为2^K,求编号为0的城市到其他城市的最短距离 输入描述: ...

2018-11-09 20:50:39

Codeforces 343C 二分+贪心

C. Read Time time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Mad scientist Mike does not use slow hard disks. His modification of ...

2018-11-09 17:43:02

牛客网 回环矩阵

链接:https://www.nowcoder.com/questionTerminal/205b62c2618546d6a52f23552b2699f6 来源:牛客网 首页 > 试题广场 >  [问答题] 编程输出以下格式的数据。 when i=1: 7   8    9 6   1    2 5   4    3 when i=2: 21 22 23 24 25 20...

2018-11-09 14:58:56

LightOJ 1315【Nim博弈】 二维SG函数与记忆化搜索

A Hyper Knight is like a chess knight except it has some special moves that a regular knight cannot do. Alice and Bob are playing this game (you may wonder why they always play these games!). As alway...

2018-11-08 17:55:45

LightOJ-1253 【Nim博弈】取完最后一个石子输

Alice and Bob are playing game of Misère Nim. Misère Nim is a game playing on k piles of stones, each pile containing one or more stones. The players alternate turns and in each turn a player can sele...

2018-11-08 12:04:48

LightOJ 1186/ LightOJ 1192【 Nim博弈变形】距离表示石子数量

You are given an n x n chess board. Only pawn is used in the 'Incredible Chess' and they can move forward or backward. In each column there are two pawns, one white and one black. White pawns are plac...

2018-11-08 10:24:10

2018【比特杯】编程大赛

2018【比特杯】编程大赛 1. D #include <cstdio> #include <cstring> #include <algorithm> #include<iostream> using namespace std; typedef long long LL; int main(){ int a=10; in...

2018-11-07 20:55:34

HDU 3544Alice's Game 【不平等博弈)】

  Alice and Bob have got a lot of chocolates. All the chocolates are rectangles of different shapes as X i * Y i.They decide to play an interesting game on the chocolates. They take turns choose a ch...

2018-11-07 10:51:41

The 2018 ACM-ICPC Asia Qingdao Regional Contest

C - Flippy Sequence ZOJ - 4060  题意: 给出A和B两个01串,通过两次反转使得A串变成B串,问有多少种方法(这个反转指的是连续的一段区间) 分类讨论: 两个串完全一样,第一次可以选择区间【L,R】反转,第二次选择区间【L,R】反转;这样的区间:长度为N的区间有1个,长度为N-1的区间有2个,长度为N-3的区间有3个。。。。长度为3的区间有N-3个,长度为2...

2018-11-06 22:51:10

浅谈 翻硬币游戏【Nim博弈】

 ACM博客_kuangbin 博弈-翻硬币游戏 hihoCoder 1172 : 博弈游戏·Nim游戏·二 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Alice和Bob这一次准备玩一个关于硬币的游戏: N枚硬币排成一列,有的正面朝上,有的背面朝上,从左到右依次编号为1..N。现在两人轮流翻硬币,每次只能将一枚正面朝上的硬币翻过来,并且可以随自己...

2018-11-06 20:36:22

POJ1163数字三角形【简单动态规划】

The Triangle  POJ - 1163  7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a rou...

2018-11-06 18:39:56

计算平方根【牛顿迭代法】

计算任意数字的平方根 import java.util.*; import java.math.*; public class Main{ public static double sqrt(double c) { if(c<0) return Double.NaN; double err=1e-15; double t=c; while(Math.abs(t-...

2018-11-06 18:04:55

HDU1525 Euclid's Game 【欧几里得博弈】

有两个玩家,Stan 和 Ollie, 在玩游戏。初始有两个自然数。Stan是先手,每次把大的数字减去小的数字的任意倍数,但是不能使数字变成负数。然后Ollie进行同样的操作,直到有一个玩家使一个数字变为零。 例如,初始时数字为(25,7): 25 7 11 7 4 7 4 3 1 3 1 0 这样Stan赢 Input 输入数据包含多行,每行两个正整数 Output 对于每组数据,加入先...

2018-11-06 12:27:46

HDU 3389 Game【Nim博弈变形】阶梯博弈

Bob and Alice are playing a new game. There are n boxes which have been numbered from 1 to n. Each box is either empty or contains several cards. Bob and Alice move the cards in turn. In each turn the...

2018-11-05 22:56:24

HDU3951 创建对称局势【博弈水题】

Coin Game After hh has learned how to play Nim game, he begins to try another coin game which seems much easier.  The game goes like this:  Two players start the game with a circle of n coins.  T...

2018-11-04 18:55:45

ZOJ 1610 Count the Colors【线段树】【暴力】

Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones. Your task is counting the segments of different colors you can see at last. Inp...

2018-11-03 23:09:06

2018年EC Final 校内选拔赛【解题报告】

问题 A: C基础-求同存异 时间限制: 1 Sec  内存限制: 128 MB 提交: 1  解决: 1 [提交][状态][讨论版][命题人:外部导入][Edit] [TestData] 题目描述 输入两个数组(数组元素个数6和8),输出在两个数组中都出现的元素(如a[6]={234567}b[8]={357911131519}则输出3、5、7)。 输入 第一行输入a数组,第二行输入b...

2018-11-03 17:12:19

HDU1698 Just a Hook 区间更新,查询区间【线段树】

Just a Hook Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 15129    Accepted Submission(s): 7506 Problem Description In the game of DotA, P...

2018-11-03 15:48:48

紫芝

你可不可以 成为我的main函数 做我此生必须 有 且只能有一个的入口 我愿为自己加上private 在你的class中 只有你能调用 ...展开 收起
关注
  • 教育·培训·科研·院校/学生
  • 中国 陕西省 西安市
奖章
  • 持之以恒
  • 1024勋章