Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: HawThorns

Problemset: ผลรวมของเลขหลัก

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-13 18:35:37

#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main(){
       string input;
       cin >> input;
       int total = 0;
       for(const char &ch : input){
              total += ch-'0';
       }
       cout << total;
       return 0;
}