Gửi bài giải
Điểm:
0,50 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Dạng bài
Ngôn ngữ cho phép
C, C#, C++, Java, Javascript, Kotlin, Pascal, PyPy, Python, Scratch
Sample Input 1
317
Sample Output 1
328
Sample Input 2
18
Sample Output 2
27
Bình luận
bài này dễ lắm!
include <bits/stdc++.h>
using namespace std;
define ll long long
ll x; ll tcs(ll x) { ll d=0; while(x>0) { d+=x%10; x/=10; } return d; } int main() { cin>>x; cout<<x+tcs(x); return 0; }