Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
1943 张弛 约数之和 C++ 通过 100 0 MS 244 KB 167 2019-11-02 19:49:36

Tests(1/1):


#include<iostream> using namespace std; int main(){ int a,b=1,c=0; cin>>a; for(;b<=a;b++){ if(a%b==0) c=c+b; } cout<<c; return 0; }


测评信息:

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0