Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: rice_ot
Problemset: ผลรวมของเลขหลัก
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-14 09:31:40
#include <bits/stdc++.h>
using namespace std;
int main(){
string n; cin>>n;
int total = 0;
for(auto i : n){
total+=i-'0';
}
cout<<total;
}