当前位置:网站首页>Pat grade a 1049 counting ones
Pat grade a 1049 counting ones
2022-07-26 16:12:00 【IX. is it a non random title】
Self written content search:
#include<iostream>
#include<vector>
#include<bits/stdc++.h>
using namespace std;
int main(void){
int i, j, k, m, n, h, mm, nn;
cin>>m;
mm = 0;
string s;
for(i=1; i<=m; i++){
s += to_string(i);
}
for(i = 0; i < s.length(); i++){
if(s[i]=='1') mm++;
}
cout<<mm;
return 0;
}Refer to others :
边栏推荐
- Is it safe for Guoyuan futures to open an account online? What is the account opening process?
- A comprehensive review of image enhancement technology in deep learning
- Google Earth Engine——MERRA-2 M2T1NXSLV:1980-至今全球压力、温度、风等数据集
- 基于SSM开发实现校园疫情防控管理系统
- bucher齿轮泵QX81-400R301
- Paper: all models are wrong, but many are useful: all models are wrong, but many are useful: understand the importance of variables by studying a whole class of prediction models at the same time
- Clojure 运行原理之编译器剖析
- [physical simulation] ultra simple shape matching simulates rigid body motion
- 初识OpenGL (2)编译着色器
- [dsctf2022] PWN supplementary question record
猜你喜欢

This article explains in detail the discovery and processing of bigkey and hotkey in redis

Teach the big model to skip the "useless" layer and improve the reasoning speed × 3. The performance remains unchanged, and the new method of Google MIT is popular

Paper:《All Models are Wrong, but Many are Useful: 所有模型都是错误的,但许多模型都是有用的:通过同时研究一整类预测模型来了解变量的重要性》翻译与解读
“卡片笔记法”在思源的具体实践案例

Development and implementation of campus epidemic prevention and control management system based on SSM

Mapwithstate of spark streaming state flow

提问征集丨快来向NLLB作者提问啦!(智源Live第24期)
FTP protocol

A comprehensive review of image enhancement technology in deep learning

Kalibr calibration realsensed435i -- multi camera calibration
随机推荐
German EMG electric actuator eb800-60ii
Summary of QT plug-in development -- add plug-in menu in the main interface
ES6 advanced - query commodity cases
We were tossed all night by a Kong performance bug
Vs2019debug mode too laggy can't enter the breakpoint
Change an ergonomic chair to relieve the old waist of sitting and writing code~
js 对数组操作的 API 总结
一文搞懂│XSS攻击、SQL注入、CSRF攻击、DDOS攻击、DNS劫持
How to use job plug-in type to call a kettle job through ETL scheduling tool taskctl?
修改mysql数据库root用户的密码
初识OpenGL (3)片段着色器(Fragment Shader)
CAD进阶练习题(一)
基于SSM开发实现校园疫情防控管理系统
Development daily summary (11): file upload function improvement: Chinese character detection and text content processing
TKE集群节点max-pod是如何配置的
换把人体工学椅,缓解久坐写代码的老腰吧~
[RCTF2015]EasySQL
朋友圈如何测试(思维导图)
The solution to the display disorder of several events files in the tensorboard
Encryption model
https://github.com/ZouJiu1/PAT