当前位置:网站首页>7-8 overspeed judgment
7-8 overspeed judgment
2022-07-03 14:09:00 【ᯤ⁹ᴳ⁺ ·】
7-8 Overspeed judgment (10 branch )
Radar velocimeter simulating traffic police . Enter the vehicle speed , If the speed exceeds 60 mph, Is displayed “Speeding”, Otherwise, it will show “OK”.
Input format :
Enter... On one line 1 No more than one. 500 Non-negative integer , That is, the speed measured by the radar .
Output format :
Output the tachometer display results in one line , The format is :Speed: V - S, among V It's the speed ,S Or is it Speeding、 Or is it OK.
sample input 1:
40
sample output 1:
Speed: 40 - OK
sample input 2:
75
sample output 2:
Speed: 75 - SpeedingCode :
#include<stdio.h>
int main(){
int v;
scanf("%d",&v);
if(v>60){
printf("Speed: %d - Speeding",v);
}else{
printf("Speed: %d - OK",v);
}
return 0;
}
边栏推荐
- Mysql:insert date:sql error [1292] [22001]: data truncation: incorrect date value:
- Golang — template
- Comprehensive case of MySQL data addition, deletion, modification and query
- simpleParallax. JS (create poor visual effects for website pictures)
- QT learning 23 layout manager (II)
- FPGA test method takes mentor tool as an example
- 信创产业现状、分析与预测
- Toast UI editor (editor allows you to edit your markup document using text or WYSIWYG, with syntax highlighting, scrolling synchronization, real-time preview and chart functions.)
- [bw16 application] instructions for firmware burning of Anxin Ke bw16 module and development board update
- Qt学习24 布局管理器(三)
猜你喜欢

Article content typesetting and code highlighting
[email protected] Nanoparticles) | nano metal organic framework carry"/>Metal organic framework material zif-8 containing curcumin( [email protected] Nanoparticles) | nano metal organic framework carry

Redis:字符串类型数据的操作命令

关于回溯问题中的排列问题的思考(LeetCode46题与47题)

GoLand 2021.1: rename the go project

JVM object lifecycle

Use and design of Muduo buffer class

Redis:Redis的数据结构、key的操作命令

TS code automatically generates JS

How to use lxml to judge whether the website announcement is updated
随机推荐
[understanding by chance-37]: the structure of human sensory system determines that human beings are self-centered
RocksDB LRUCache
Go language web development series 26: Gin framework: demonstrates the execution sequence of code when there are multiple middleware
Go language web development series 29: Gin framework uses gin contrib / sessions library to manage sessions (based on cookies)
Qt学习24 布局管理器(三)
Richview trvstyle liststyle list style (bullet number)
Canvas utility library fabric JS user manual
Failure of vector insertion element iterator in STL
FPGA test method takes mentor tool as an example
Article content typesetting and code highlighting
Record 405 questions about bank callback post request
Generate directories from web content
Collection of mobile adaptation related articles
Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
How to bold text in AI
Redis:字符串類型數據的操作命令
How to delete an attribute or method of an object
QT learning 20 standard dialog box in QT (middle)
Thrift threadmanager and three monitors
“又土又穷”的草根高校,凭什么被称为“东北小清华”?