Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: limsan20122
Problemset: ผลรวมของเลขหลัก
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-30 14:24:09
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
string x;
int y=0;
cin >> x;
for(int i=0;i<x.length();i++){
y+=(x[i]-'0');
}
cout << y;
return 0;
}