当前位置:网站首页>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;
}
边栏推荐
- Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
- MySQL data processing value addition, deletion and modification
- Go: send the get request and parse the return JSON (go1.16.4)
- js 2023. String pair equal to the target string after connection
- Rasp implementation of PHP
- JS shift operators (< <,> > and > > >)
- Mysql:insert date:sql error [1292] [22001]: data truncation: incorrect date value:
- Too many files with unapproved license
- Why don't I have a rookie medal
- JVM class loading
猜你喜欢

信创产业现状、分析与预测

JS Part III

JS Part 2

小项目(servelt+jsp+mysql+EL+JSTL)完成一个登录功能的Servlet,具有增删改查的操作。实现登录身份验证,防止非法登录,防止多点登录,记住用户名密码功能。

【吉林大学】考研初试复试资料分享

JVM family - overview, program counter day1-1

Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue

QT learning 24 layout manager (III)

Redis: redis data structure and key operation commands

MySQL 数据增删改查综合案例
随机推荐
[acnoi2022] guess numbers
Uniapp tips - scrolling components
Programmable logic device software testing
1px problem of mobile terminal
Raft 协议
怎样删除对象的某个属性或⽅法
Similarities and differences of sessionstorage, localstorage and cookies
MySQL 数据增删改查综合案例
jvm-运行时数据区
JS continues to explore...
Go language web development series 28: solve cross domain access of CORS with gin contrib / CORS
Implementation of Muduo asynchronous logging
How to bold text in AI
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
金属有机骨架(MOFs)抗肿瘤药载体|PCN-223装载甲硝唑|UiO-66包载盐酸环丙沙星([email protected])
JS download files through URL links
JVM垃圾回收机
[ACNOI2022]猜数
28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
Function calling convention