#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 2e5 + 5;
int n, a[N], num[N];
ll ans;
int main(){
ios::sync_with_stdio(0), cin.tie(0);
cin >> n;
for(int i = 1; i <= n; ++i){
cin >> a[i];
for(int t = a[i], j = 1; t; t /= 10, ++j){
num[j] += t % 10;
}
}
for(int i = 1; i <= 20; ++i){
num[i + 1] += num[i] / 10, ans += num[i] / 10;
}
cout << ans;
return 0;
}剪贴板
剪贴板 ip65egah
剪贴板信息
剪贴板信息
- 收录
- 更新