当前位置:网站首页>C竞赛训练
C竞赛训练
2022-08-02 05:08:00 【mazhilin】
# include<stdio,h>int main (){int m,n,j,x,y; while(1) { scanf ("%d",&n); if (n==0) return ; j=0; x=0; for(m=0;m<n;m++) { scanf ("%d",&y); if (x<y) j+=(y-x)*6+5; else j+=(x-y)*4+5; x=y; } printf("%d\n",j); } return ;}边栏推荐
- The company does not pay attention to software testing, and the new Ali P8 has written a test case writing specification for us
- 5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...
- What do interview test engineers usually ask?The test supervisor tells you
- 本周大新闻|苹果MR已进行Pre-EVT测试,Quest 2涨价100美元
- nacos注册中心
- 51 MCU peripherals: DS18B20
- Android studio connects to MySQL and completes simple login and registration functions
- How H5 realizes evoking APP
- Meta公司内部项目-RaptorX:将Presto性能提升10倍
- Use the browser's local storage to realize the function of remembering the user name
猜你喜欢
随机推荐
C语言基础知识梳理总结:零基础入门请看这一篇
golang环境详细安装、配置
mysql 8.0.28版本安装配置方法图文教程
165.比较版本号
The Go language learning notes - dealing with timeout - use the language from scratch from Context
【解决】RESP.app 连接不上redis
公司不重视软件测试,新来的阿里P8给我们撰写了测试用例编写规范
Block elements, inline elements (
elements, span elements)MySQL 5.7 detailed download, installation and configuration tutorial
25K测试老鸟6年经验的面试心得,四种公司、四种问题…
18 years of programmer career, read more than 200 programming books, pick out some essence to share with you
apifox介绍及使用(1)。
nacos注册中心
MySQL 5.7 upgrade to 8.0 detailed process
Browser onload event
Three methods of importing sql files in MySQL
C语言中i++和++i在循环中的差异性
C语言入门实战(13):十进制数转二进制
go语言中的goroutine(协程)
51单片机外设篇:红外通信









