Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122535 刘益梵 各个位数之和 C++ Time Limit Exceeded 1000 MS 264 KB 140 2025-06-21 10:56:50

Tests(0/5):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,s; cin>>a; while(a>=0){ s+=a%10; a=a/10; } return 0; }