Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
1984 大聪明 将任何一个正整数的立方写成一组相邻奇数之和 C++ Compile Error 0 0 MS 0 KB 152 2019-11-03 12:26:23

Tests(0/0):


#include<iostream> using namepapers 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; }


Judgement Protocol: