当前位置:网站首页>蓝桥历届真题-门牌制作
蓝桥历届真题-门牌制作
2022-08-09 13:04:00 【CoolTiger_程序员】

答案:624
代码如下:
#include<stdio.h>
int main() {
int i,count=0;
for(i=1;i<=2020;i++){
int j=i;
while(j){
if(j%10==2){
count++;
}
j/=10;
}
}
printf("%d\n",count);
return 0;
}
边栏推荐
- error Trailing spaces not allowed no-trailing-spaces 9:14 error Unexpected trailing comma
- Process/Thread Related in Sandbox - 2
- Rmarkdown Tutorial
- 陈强教授《机器学习及R应用》课程 第十六章作业
- CPU-MIPS32 instruction architecture (unlocked pipeline microprocessor)
- Unicom network management protocol block diagram
- 基于 R 语言的深度学习——简单回归案例
- Standing wave ratio calculation method
- Jenkins API groovy calling practice: Jenkins Core Api & Job DSL to create a project
- uni-app - uview Swiper 轮播图组件点击跳转链接(点击后拿到 item 行数据, 取出数据做操作)
猜你喜欢

基于 R 语言的判别分析介绍与实践 LDA和QDA

Ledong Fire Rescue Brigade was invited to carry out fire safety training for cadres

GIN中GET POST PUT DELETE请求

Come and throw eggs.

技嘉显卡 RGBFusion 不能调光解决方法

5G 联通网管设计思路

关于做2D游戏时,Canvas边界显示在Game窗口的问题

Unity3d_API_GPS_LocationService

Unicom network management protocol block diagram

npm install失败
随机推荐
NC193 二叉树的前序遍历
Record the system calls and C library functions used in this project-2
[极客大挑战 2019]Upload
问题系列-如何修改或更新localhost里的值
read stream special attention
telnet+ftp to control and upgrade the device
Yocto 可以下载的第三方库
记录本项目中用到的系统调用与C库函数-2
43. The sword refers to Offer 1 ~ 1 the number of occurrences of n integers (recursive, mathematics)
render解析
FFmpeg多媒体文件处理(FFMPEG日志系统)
Map mixed density function and quantile added line
Time series analysis course lab report
七夕力扣刷不停,343. 整数拆分(剑指 Offer 14- I. 剪绳子、剑指 Offer 14- II. 剪绳子 II)
The FPGA - work summary recently
ftplib+ tqdm 上传下载进度条
WSA工具箱安装应用商店提示无法工作怎么解决?
Q_04_06 把它放在一起:传送
电脑重装系统还原0x80070005错误如何解决
Clock frequency and baud rate count for serial communication in FPGA