Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: jamesz

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-30 11:54:41

#include<bits/stdc++.h>
using namespace std;
int main(){
	string c; cin>> c;
	int g = c.size(), score = 0;
	for(int i = 0; i<g; i++){
		score = score + c[i] - '0';
	}
	cout<<score;
	
}