Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
330962 | 路明泽 | 【C1-7】小童的噩梦 | C++ | 通过 | 100 | 11 MS | 184 KB | 259 | 2025-07-11 13:10:30 |
#include <stdio.h> int main() { int n; scanf("%d", &n); int sum = 0; int temp = n; while (temp > 0) { sum += temp % 10; temp /= 10; } printf("%d\n", (sum % 9 == 0) ? 1 : 0); return 0; }