题目链接:http://poj.org/problem?id=3087 题目大意:已知两堆牌s1和s2的初始状态, 其牌数均为c,按给定规则能将他们相互交叉组合成一堆牌s12,再将s12的最底下的c块牌归为s1,最顶的c块牌归为s2,依此循环下去。 现在输入s1和s2的初始状态 以及 预想的最终状态 ...
分类:
其他好文 时间:
2017-09-13 23:24:58
阅读次数:
236
Linux网络管理 ifconfig eth0:以太网接口 HWaddr:网络接口硬件地址 inet addr:网络接口的IP地址 lo:模拟网络接口,回环接口 ifconfig eth0 查看eth0接口的网络状态 ifconfig -a 查看主机上的所有网络接口 ifconfig eth1 up... ...
分类:
系统相关 时间:
2017-09-13 23:14:08
阅读次数:
223
画五角星 import turtle for i in range(5): turtle.forward(50) turtle.right(144) 画同心圆 import turtle for i in range(5): turtle.up() turtle.goto(50,-20*(i+1))... ...
分类:
其他好文 时间:
2017-09-13 17:21:46
阅读次数:
132
1.用循环画五角星 import turtleturtle.setup(600,400,0,0)turtle.color("yellow")turtle.bgcolor('red')turtle.fillcolor("yellow")turtle.up()turtle.goto(-250,75)tu ...
分类:
其他好文 时间:
2017-09-13 15:22:49
阅读次数:
186
传送门 不会啊,看了好久的题解才看懂 TT 因为可以直接分成n段,所以就得到一个答案n,求解最小的答案,肯定是 <= n 的, 所以每一段中的不同数的个数都必须 <= sqrt(n),不然就不是最小的答案 那么 f[i]表示前i个数的最有解 g[i]表示从当前位置开始,有i个不同的数,最多能往前延伸 ...
分类:
其他好文 时间:
2017-09-13 13:18:35
阅读次数:
173
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5912 Problem Description Mr. Frog recently studied how to add two fractions up, and he came up with an ...
分类:
其他好文 时间:
2017-09-13 00:31:44
阅读次数:
292
Problem Description Mr. Frog recently studied how to add two fractions up, and he came up with an evil idea to trouble you by asking you to calculate ...
分类:
其他好文 时间:
2017-09-13 00:23:39
阅读次数:
267
1.画五角星 import turtlefor i in range(5): turtle.forward(100) turtle.right(144) 2.画同心圆 import turtle for i in range(5): turtle.circle((i+1)*10) turtle.up ...
分类:
其他好文 时间:
2017-09-12 22:06:56
阅读次数:
202
1、 from turtle import * for i in range(5) forward(200) right(144) 2、 from turtle import *for i in range(5): circle(20*i) up() goto(0,-20*i) down() wri ...
分类:
其他好文 时间:
2017-09-12 21:59:19
阅读次数:
140
1.画五角星 import turtlefor i in range(5): turtle.forward(100) turtle.right(144) 2.画同心圆 import turtle for i in range(5): turtle.circle((i+1)*10) turtle.up ...
分类:
其他好文 时间:
2017-09-12 21:21:51
阅读次数:
155