当前位置:网站首页>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;
}
边栏推荐
- [applinking practical case] share in app pictures through applinking
- 正则及常用公式
- PCL eigen introduction and simple use
- MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
- The most detailed MySQL installation tutorial
- Oracle 笔记
- JSP webshell免殺——JSP的基礎
- 【AppLinking实战案例】通过AppLinking分享应用内图片
- Special topic of binary tree -- [deep base 16. Example 7] ordinary binary tree (simplified version) (multiset seeks the precursor and subsequent sentry Art)
- Summary of cases of players' disconnection and reconnection in Huawei online battle service
猜你喜欢

V2X-Sim数据集(上海交大&纽约大学)

二叉树专题--AcWing 3540. 二叉搜索树建树(实用板子 构建二叉搜索树 并输出前、中、后序遍历)

金山云——2023届暑期实习

I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)

V2x SIM dataset (Shanghai Jiaotong University & New York University)
![[AGC] build service 3 - authentication service example](/img/89/63f367270e806e89c4ff92360dc3c5.png)
[AGC] build service 3 - authentication service example

Implement custom drawer component in quick application

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

Iii. Système de démarrage et d'horloge à puce

二叉树专题--AcWing 3384. 二叉树遍历(已知先序遍历 边建树 边输出中序遍历)
随机推荐
二叉树专题--【深基16.例7】普通二叉树(简化版)(multiset 求前驱 后继 哨兵法)
V2X-Sim数据集(上海交大&纽约大学)
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)
[AI application] Hikvision ivms-4200 software installation
QT学习日记7——QMainWindow
flink二开,实现了个 batch lookup join(附源码)
正则及常用公式
V2x SIM dataset (Shanghai Jiaotong University & New York University)
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
Analysis of hot spots in AI technology industry
Luogu p1892 [boi2003] Gang (and search for variant anti set)
TIPC Cluster5
【深入浅出玩转FPGA学习2----设计技巧(基本语法)】
Hdu1228 a + B (map mapping)
二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作
Hdu1236 ranking (structure Sorting)
Oracle 笔记
MySQL keyword
最详细MySql安装教程
三.芯片启动和时钟系统