Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: DoItUntilSheCameBack
Problemset: ผลรวมของเลขหลัก
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-17 21:57:53
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <stack>
#include <climits>
#include <map>
#include <numeric>
#include <iomanip>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
string s;
cin >> s;
int sum = 0;
for(auto it : s) {
sum += it - '0';
}
cout << sum;
return 0;
}