Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: mameeewin

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-09 18:41:09

#include <iostream>
using namespace std;

int main(){
  string s; cin >> s;
  int d=0; for (char i: s) d+=i-'0';
  cout << d;
}