Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
330848 | 李俞家骅 | 【C1-7】小童的噩梦 | C++ | 通过 | 100 | 3 MS | 252 KB | 214 | 2025-07-11 10:50:40 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,sum=9; cin>>n; sum=n/1%10+n/10%10+n/100%10+n/1000%10+n/10000%10; if(n%sum==0) cout<<"1"; else cout<<"0"; return 0; }