当前位置:网站首页>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;
}
边栏推荐
- OpenMLDB Meetup No.4 会议纪要
- 洛谷 P4281 [AHOI2008]紧急集合 / 聚会(树上倍增 LCA)
- 点云投影图片
- 二叉树专题--AcWing 47. 二叉树中和为某一值的路径(前序遍历)
- JVM之垃圾回收器
- 软件产品管理系统有哪些?12个最佳产品管理工具盘点
- MySQL lethal serial question 3 -- are you familiar with MySQL locks?
- Uncover the secrets of Huawei application market application statistics
- TIPC Service and Topology Tracking4
- Special topic of binary tree -- acwing 1497 Traversal of the tree (use post and mid order traversal to build a binary tree)
猜你喜欢

TIPC Service and Topology Tracking4

OpenMLDB Meetup No.4 会议纪要

HDU1228 A + B(map映射)

Nodejs+express+mysql simple blog building

How to implement tabbar title bar with list component

Hdu1236 ranking (structure Sorting)

实验电镜距离测量之Matlab处理

Uncover the secrets of Huawei application market application statistics

一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)

【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
随机推荐
static 函数中的静态变量
洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
QT学习日记7——QMainWindow
TIPC Service and Topology Tracking4
学习open62541 --- [66] UA_String的生成方法
Why does LabVIEW lose precision in floating point numbers
Common methods of JS array
Static variables in static function
PCL extracts a subset from a point cloud
Oracle notes
HDU1236 排名(结构体排序)
Special topic of binary tree -- acwing 47 Path with a certain value in binary tree (preorder traversal)
[ark UI] implementation of the startup page of harmonios ETS
What are the software product management systems? Inventory of 12 best product management tools
TIPC messaging3
【AI应用】海康威视iVMS-4200软件安装
三.芯片啟動和時鐘系統
Flink two Open, implement Batch Lookup join (attached source)
PCL eigen introduction and simple use
快应用中实现自定义抽屉组件