-
sbsWeather
主要是获取到天气信息后的中文字符处理,返回字符串的全拼,是汉字转化为全拼,其它字符不进行转换。(Get weather information to the Chinese character processing, returns a string Quanpin, Chinese characters into Quanpin, the other characters are not converted.)
- 2013-05-15 18:22:50下载
- 积分:1
-
power_wind_type_4_avg
直驱风力发电机组系统 全功率变流器并网仿真模型 修改后可以进行低穿仿真(Wind power)
- 2013-10-15 13:39:37下载
- 积分:1
-
q1
说明: Pokeface
题目描述
魔术师将一叠扑克顺次在桌上排成一行,初始全部正面朝上。随后,他每次挥一挥衣袖,都会翻转一连串的扑克,改变它们的正反朝向。从古代传下来的规矩,魔术师皆有师傅,他们要随时准备回答师傅的问题。问题形如:目前从第i张扑克牌到第j张扑克牌中,有几张正面朝上?
作为魔术师的助手,你被要求学习程序设计、算法与数据结构。现在,魔术师把这个问题交给了你,你需要编写一个程序,维护相应的数据结构来保存桌子上牌面的情况,同时对于师傅的每一个问题,你要用尽量快的速度计算出答案。
输入
第一行包含三个正整数n、p和q。n表示扑克牌的数量,p表示魔术师的挥一挥次数,q表示师傅的问话次数。
接下来共p+q行,每行包含一个操作,操作分为2种:
H i j 魔术师挥一挥,改变了第i张牌到第j张牌的正反
Q i j 师傅问话:截至目前,第i张到第j张牌中有多少张正面朝上
操作中恰好包含p次H操作,q次Q操作,与第一行的p和q吻合。H操作和Q操作的范围均包含边界(即第i张和第j张牌)。
对于每个操作,输入保证1 ≤ i ≤ j ≤ n。
输出
对于每次Q操作,输出一行,包含一个整数,表示问题的答案。
提示:线段树(Pokeface
Title Description
The magician will stack poker table sequentially in a row, all the initial face-up. He then every wisp will flip a series of poker pros and cons of changing their orientation. The rules handed down ancient times, the master magician Jie, they be ready to answer the teacher s questions. Question of the form: Currently playing cards i to j-card poker, there are a few face-up?
As a magician s assistant, you are required to learn programming, algorithms and data structures. Now, the magician put this question to you, you need to write a program to maintain appropriate data structure to hold the cards on the table face the situation, while the master for each question, and you want to use as quickly calculate the answer.
Enter
The first line contains three positive integers n, p and q. n represents the number of poker, p represents the wave of the magic number, q represents the number of master s questioning.
Next, a total of p+ q rows, each containi)
- 2015-01-18 15:02:14下载
- 积分:1
-
filerandomreadandwrite
这是一个Visual C++编写的实现文件随寄存储的小程序,在Visual C++6.0中编译通过.(This is a Visual C achieve document prepared by the pin with a small storage procedures, Visual C 6.0 compile.)
- 2006-08-20 19:22:01下载
- 积分:1
-
C#调用百度地图实例源码
C#调用百度地图实例源码
网络搜集整理 希望对大家有所帮助(C# Call Baidu Map Instance Source
I hope that the collection and arrangement of the network will be helpful to all of you.)
- 2020-06-18 23:40:01下载
- 积分:1
-
DECORE
MPEG4解码C源代码[可以移植到ARM和DSP上],绝对的有价值。(MPEG4 decoder C source code [can be ported to the ARM and DSP], an absolute value.)
- 2009-02-23 13:07:54下载
- 积分:1
-
This a remarkably agreement Network engines, including two parts : a server used...
这是一个Tcp协议的网络引擎,包括两个部分: a、服务器采用完成端口模型,提供了丰富的接口函数 b、客户端采用三线程加重叠Io模型,速度快,稳定 都采用回调函数接收数据,是对网络Tcp模型Socket的完整封装,所有代码在Windows2000下测试通过,并已应用到很多现有的中型网络系统中。-This a remarkably agreement Network engines, including two parts : a server used to complete port model, a rich interface function b, client using three overlapping threads increases Io model, speed and stability using a callback function to receive information, the network model DEC Socket complete package, all of the code in the test under Windows 2000, and has been applied to many existing medium-sized network systems.
- 2022-03-13 04:19:31下载
- 积分:1
-
4FSK
说明: 产生随机信号,采用4fsk调制方式通过一个水声信道,再采用非相干解调(Generate random signal, use 4FSK modulation to pass through an underwater acoustic channel, and then use incoherent demodulation)
- 2020-11-17 10:09:41下载
- 积分:1
-
- 2022-07-04 06:01:09下载
- 积分:1
-
. net source code, mainly to solve the paper problem, welcome to use, welcome to...
.net源码,主要解决文件问题,欢迎使用,欢迎下载-. net source code, mainly to solve the paper problem, welcome to use, welcome to download
- 2023-02-14 10:10:04下载
- 积分:1