当前位置:网站首页>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 ;}边栏推荐
猜你喜欢

51 MCU peripherals: DS18B20

MYSQL unique constraint

eggjs controller层调用controller层解决方案

ELK日志分析系统

Detailed explanation of AMQP protocol

ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger
![[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays](/img/eb/9b05508e88b7f17d80de2afa8c08ce.png)
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays

The Go language learning notes - dealing with timeout - use the language from scratch from Context
[email protected](using passwordYES)"/>Navicat报错:1045-Access denied for user [email protected](using passwordYES)

Shuttle + Alluxio 加速内存Shuffle起飞
随机推荐
MYSQL unique constraint
LeetCode刷题系列 -- 10. 正则表达式匹配
Alluxio为Presto赋能跨云的自助服务能力
golang generics
关于web应用的目录结构
本周大新闻|苹果MR已进行Pre-EVT测试,Quest 2涨价100美元
APP Bluetooth connection test of test technology
golang的time包:时间间隔格式化和秒、毫秒、纳秒等时间戳格式输出的方法
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
"Digital reconstruction of the system, getting the CEO is the first step"
MySQL 8.0.28 version installation and configuration method graphic tutorial
coredns介绍
c语言:查漏补缺(三)
el-input can only input integers (including positive numbers, negative numbers, 0) or only integers (including positive numbers, negative numbers, 0) and decimals
mysql 8.0.28版本安装配置方法图文教程
公司不重视软件测试,新来的阿里P8给我们撰写了测试用例编写规范
面试官:设计“抖音”直播功能测试用例吧
golang's time package: methods for time interval formatting and output of timestamp formats such as seconds, milliseconds, and nanoseconds
【解决】RESP.app 连接不上redis
MySQL 5.7 upgrade to 8.0 detailed process