当前位置:网站首页>蓝桥历届真题-门牌制作
蓝桥历届真题-门牌制作
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;
}
边栏推荐
- Unicom network management protocol block diagram
- 剑指 Offer 56 - II. 数组中数字出现的次数 II(位运算)
- ArcEngine(八) 选择要素并高亮显示
- 陈强教授《机器学习及R应用》课程 第十五章作业
- 周末看点回顾|我国IPv6网络全面建成;2022昇腾AI开发者创享日·南京站成功举办…
- kustomize entry example and basic syntax instructions
- Q_06_05 文件结构
- gin的中间件和路由分组
- error Trailing spaces not allowed no-trailing-spaces 9:14 error Unexpected trailing comma
- render解析
猜你喜欢
【瑞吉外卖】day05:增、删、改、查分类以及公共字段自动填充
error Trailing spaces not allowed no-trailing-spaces 9:14 error Unexpected trailing comma
kustomize entry example and basic syntax instructions
Anta and Huawei Sports Health jointly verify the champion running shoes and lead Chinese sports with innovation
搭建大型分布式服务(四)Docker搭建开发环境安装Mysql
剑指offer,剪绳子2
基于 R 语言的判别分析介绍与实践 LDA和QDA
现在40系显卡都快出来了,为何1060型号的显卡还有这么多人用?
RTSP协议讲解
乐东消防救援大队应邀为干部开展消防安全培训
随机推荐
关于做2D游戏时,Canvas边界显示在Game窗口的问题
LeetCode 37. Solve Sudoku
FFmpeg multimedia file processing (the basic concept of ffmpeg processing stream data)
5G China unicom general exception handling
Periodic sharing of Alibaba Da Tao system model governance
Explanation of RTSP protocol
记录本项目中用到的系统调用与C库函数-2
剑指offer,剪绳子2
R语言kaggle 游戏数据探索与可视化
搭建大型分布式服务(四)Docker搭建开发环境安装Mysql
Q_08 更多信息
Jenkins API groovy calling practice: Jenkins Core Api & Job DSL to create a project
The FPGA - work summary recently
telnet+ftp 对设备进行 操控 和 升级
R language kaggle game data exploration and visualization
问题系列-如何修改或更新localhost里的值
NC40 链表相加(二)
FFmpeg多媒体文件处理(FFMPEG日志系统)
周末看点回顾|我国IPv6网络全面建成;2022昇腾AI开发者创享日·南京站成功举办…
Professor Chen Qiang "application in machine learning and R" course chapter 17