For solving the following problem:
"There is No Free Lunch"
Time Limit: 1 Second Memory Limit: 32768 KB
One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free.
However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.
Tic Tac Toe程序。可以供一到兩個(gè)玩家使用。程序中使用了visual basic 計(jì)時(shí)器,所以每一個(gè)步驟都有時(shí)間限制。此外,計(jì)算機(jī)可是一個(gè)有簡(jiǎn)單智能的對(duì)手,他不但不會(huì)隨便出手,反而還要竭力贏了你才罷休。
Tic Tac Toe program. One or two players. It uses the visual basic timer, so each move has time limit. Simple artificial intelligence: computer does not play randomly, but "tries" to win and stop you from winning.
These codes require an ASCII input file called input.dat of the following form:
Lower Limit on x Upper Limit on x Final Time
Pressure for x<0 when t=0 Density for x<0 when t=0 Speed for x<0 when t=0
Pressure for x>0 when t=0 Density for x>0 when t=0 Speed for x>0 when t=0
These codes produce 8 ASCII output files:
density.out. Density vs. x
entropy.out. Entropy vs. x
mach.out. Mach number vs. x
massflux.out. Mass flux vs. x
pressure.out. Pressure vs. x
sound.out. Speed-of-sound vs. x
velocity.out. Velocity vs. x
waves.out. A description of the solution in terms of the three waves defined in the book (+,-,0).
高的工作電壓高達(dá)100V N雙N溝道MOSFET同步驅(qū)動(dòng) The D810DCDC is a synchronous step-down switching regulator controller that can directly step-down voltages from up to 100V, making it ideal for telecom and automotive applications. The D810DCDC uses a constant on-time valley current control architecture to deliver very low duty cycles with accurate cycle-by-cycle current limit, without requiring a sense resistor. A precise internal reference provides 0.5% DC accuracy. A high bandwidth (25MHz) error amplifi er provides very fast line and load transient response. Large 1Ω gate drivers allow the D810DCDC to drive multiple MOSFETs for higher current applications. The operating frequency is selected by an external resistor and is compensated for variations in VIN and can also be synchronized to an external clock for switching-noise sensitive applications. Integrated bias control generates gate drive power from the input supply during start-up and when an output shortcircuit occurs, with the addition of a small external SOT23 MOSFET. When in regulation, power is derived from the output for higher effi ciency.