【C Language】Exercise Questions - Train Encounter - with video explanation
2022-09-23 09:23:15【Uncle Cookie @Ocean】
This article is quoted from the following books written by the author; this article is allowed to be quoted, taught or reprinted for personal study, teaching and other purposes, but the original author "Uncle Ocean Biscuits
Uncle" must be indicated; this article is not allowed to be in paper formexcerpts or adaptations for the purpose of electronic publication.
1. "Python programming foundation and application", Chen Bo, Liu Huijun, Higher Education Press.Free teaching video Python programming foundation and application
2. "Python programming foundation and application experiment tutorial", Chen Bo,Xiong Xinzhi, Zhang Quanhe, Liu Huijun, Zhao Hengjun, Higher Education Press Python Programming Fundamentals and Application Experiment Course
3. "Concise C and C++ Language Course", Chen Bo, manuscript to be published.Free lecture video
(Trains meet) Train A is 150 meters long and has a speed of 15 meters per second; train B is 200 meters long and has a speed of 12 meters per second.How long does it take for two trains to move towards each other, from the time the front ends of the trains meet until the rear of the two trains separate?Please program the solution and output the result with two decimal places in seconds.
The lesser of two evils
Instead of letting students search and copy answers online, it is better to allow students to watch the video once, listen to the teacher once, and then copy, debug, and submit.
In order to help more young friends learn programming well, the author opened two free online courses on station B, one with zero basics in Python, and one with zero basics in C and C++.
If you think the paper book looks more comfortable, there are currently two Python, C and C++ in the process of publishing.
author[Uncle Cookie @Ocean],Please bring the original link to reprint, thank you.
The sidebar is recommended
- Honda CR-V seven-seat version of the real car exposure, it is obvious that the third row is reserved for dogs
- Xiaopeng G9 released, starting at 309,900 yuan, but four-wheel drive can only be bought at 400,000 yuan.
- Yangcheng Evening News was shortlisted in the Top 500 Asian Brands and continued to be No. 1 in the National Evening News category.
- The new Iveco real car exposure, using 2.5t diesel power is the same as the current model
- The Shadow Leopard Galaxy fighter is equipped with a starry sky theme, showing a two-color starry sky at night
- U.S. Transportation Administration: Tesla recalls more than 1 million vehicles due to faulty automatic windows
- Analysis of the new Qingling Isuzu m600 light truck
- Tesla recalls 1.1 million electric vehicles Reuters
- It can be called the "pioneer" of Japanese pure electric SUVs. It does not seek speed but stability. Can it be popular in China?
- Comprehensive upgrade, the new Lynk & Co 03 family officially launched tonight
guess what you like
Luxury comparable to Porsche, Maybach!He Xiaopeng: Xiaopeng G9 will outsell Audi Q5 next year
Compared with the 2.2kW external discharge capacity of the Xpeng G9, the 3.3kW of the Avita 11 is simply hidden.
Bao Siyu: Smart car, Chery New Energy joins up_Sohu Auto_Sohu
Baidu Map Navigation "Boarding" a Motorcycle: Exploration and Breakthrough
Shadow Leopard Galaxy Fighter Edition is too explosive!Starry sky + gradient car paint, domestic design really stands up_Sohu Auto_Sohu.com
It fell by more than 40% year-on-year, and the monthly sales were less than 1,000 units. Why can't the Cadillac CT6 sell?_sohu car_sohu.com
A new generation of Honda cr-v is about to be launched, and the space practicality is even better
Tank 400 road test spy photos exposed, higher than tank 300
Geely Boyue's static experience is eye-catching, innovative and textured
Event emergency broadcast | QCon Global Software Developers Conference morning bus connection sharing
- 2023 Buick New Regal launched, priced from 196,800, configuration adjustment
- Baojun's new hardcore SUV, the "replacement" of Jimny?
- Xiaopeng G9 four-wheel drive version accelerates from 100 kilometers in 3.9 seconds and has a battery life of 200 kilometers
- Low-Carbon Vision Creates New Opportunities for Sino-German New Energy Vehicle Industry Cooperation
- The latest Lexus ux, with a grounded appearance and a 12.3-inch large screen
- Tesla's wave of price cuts cut scalpers to tears
- ORA Hao Mao added two new models, priced from 161,000 yuan
- New Audi a8l low-key travel experience
- [Physical application] Simulation of lane detection based on Matlab
- Wuling Capgemini is newly equipped with a 1.5t four-cylinder engine and provides a low-power version
- Toyota has begun to expand the traditional "Sea Lion" again, with prominent rear space and a price of 280,000
- Hongqi hq9 officially launched, priced at 358,800 yuan, high-end luxury mpv
- Indonesia's Jakarta motorcycle and bicycle and spare parts exhibition (2023) _ sohu auto _ sohu net
- The all-new Mercedes-Benz glc is still the best-selling SUV from Mercedes-Benz
- The new generation cr-v adopts a more stylish front face shape
- PWM control car speed
- T5 Mach popular version listed, appearance of new upgrades, pick up 1.5 t power
- gl8es Lu Zun and Yue version, family travel is more secure
- 346 Beijing-brand cars were auctioned at the maximum price
- The new Xingrui spy photos are exposed, and the new LCD instrument panel is replaced, and it breaks 100 in 7.9 seconds
- The Dunbai high-speed rail is open to traffic, take the Snow Country Express to unlock the hidden gameplay of Changbai Mountain!
- Trumpchi Shadow Leopard Galaxy Fighter Edition was launched, sold for 136,800 yuan, with rich appearance and configuration
- Wuling Journey 2022 2.0l manual entrepreneurial model is listed, with a wheelbase of 3180 mm
- The new Cadillac ct4 premium version, 100 km acceleration 6.9s, you deserve it!
- Wuling's new journey 2.0l, new 1.5t engine, expanded cargo box volume
- Fun Iceland | Cool "Monster Truck"
- Wuling new MPV real vehicle exposure, or enable the trend of "ling" name
- The pure electric version of the Mustang is selling well, and the Ford Mustang is once again ushered in strengthening
- MG's new mg7 offers two different powertrains, 1.5T and 2.0T
- The new Nissan X-Trail has a fuel consumption of only 5.8L per 100 kilometers. Why do so many people like it?
- New Volkswagen Tiguan interior spy photos exposed for the first time, with double large-size floating LCD screen design
- Yaoguang 2025 Chery Technology DAY is about to open, and the outbreak of black technology will be spoiled in advance
- Vue basic case (fruit search, shopping cart, todolist, message board, marquee)
- Java based on Springboot + + nodejs vue high-speed rail subway train ticket booking system element
- Save the "electric dad"?Big factory bets on wireless charging road_Sohu Auto_Sohu.com
- The Ford Lima is about to be domestically produced, with a domineering appearance, a four-wheel drive system, and a hardcore off-road vehicle
- The new Honda cr-v real car exposure, the appearance is more real, more beautiful
- Car owners need to pay attention to "full insurance ≠ full insurance"
- 818 Auto Home Landing Day WEY Offline Special Experience Day
- 21 Depth | How did the popular empire in the Obermo era continue?_sohu car_sohu.com