Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
341140 丁煜宸 【C1-7】小童的噩梦 C++ 通过 100 4 MS 240 KB 346 2025-08-22 10:45:19

Tests(3/3):


#include <iostream> using namespace std; int main() { int n; cin >> n; int sum = 0; int temp = n; while (temp > 0) { sum += temp % 10; temp /= 10; } if (sum % 9 == 0) { cout << 1 << endl; } else { cout << 0 << endl; } return 0; }


测评信息: