当前位置:网站首页>String (Analog
String (Analog
2022-07-02 11:11:00 【lcxdz】
#include<bits/stdc++.h>
using namespace std;
long long ans=0;
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
string s=to_string(i);
ans+=s.size();
cout<<i<<" "<<s.size()<<endl;
}
cout<<ans<<endl;
return 0;
}
边栏推荐
- Special topic of binary tree -- [deep base 16. Example 7] ordinary binary tree (simplified version) (multiset seeks the precursor and subsequent sentry Art)
- 二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作
- TIPC messaging3
- PCL extracts a subset from a point cloud
- Filtering of PCL
- TIPC protocol
- 二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
- TIPC addressing 2
- Special topic of binary tree -- Logu p1229 traversal problem (the number of traversals in the middle order is calculated when the pre and post order traversals of the multiplication principle are know
- [play with FPGA learning 4 in simple terms ----- talk about state machine design]
猜你喜欢
Iii. Système de démarrage et d'horloge à puce
III Chip startup and clock system
Special topic of binary tree -- acwing 1589 Building binary search tree
Analysis of hot spots in AI technology industry
I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)
Creation and use of unified links in Huawei applinking
Binary tree topic -- Luogu p3884 [jloi2009] binary tree problem (DFS for binary tree depth BFS for binary tree width Dijkstra for shortest path)
华为游戏初始化init失败,返回错误码907135000
Implement custom drawer component in quick application
TIPC Service and Topology Tracking4
随机推荐
【深入浅出玩转FPGA学习2----设计技巧(基本语法)】
JSP webshell free -- webshell free
正则及常用公式
Overview of integrated learning
二叉树专题--AcWing 3540. 二叉搜索树建树(实用板子 构建二叉搜索树 并输出前、中、后序遍历)
Why does LabVIEW lose precision in floating point numbers
Flink two Open, implement Batch Lookup join (attached source)
Leetcode 182 Find duplicate email (2022.07.01)
Binary tree topic -- p1030 [noip2001 popularization group] find the first order
二叉树专题--AcWing 18. 重建二叉树(利用前、中序遍历,构建二叉树)
Static variables in static function
三.芯片启动和时钟系统
MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
Hdu1234 door opener and door closer (water question)
Learn open62541 -- [66] UA_ Generation method of string
The most detailed MySQL installation tutorial
软件产品管理系统有哪些?12个最佳产品管理工具盘点
php中self和static在方法中的区别
Jsp webshell Free from killing - The Foundation of JSP
Primary key policy problem