20分
by beargeng是女孩子 @ 2019-01-25 13:18:50
@[WA我最强](/space/show?uid=133816) 如果这道题能暴力写过那就不是蓝题了
by WA鸭鸭 @ 2019-01-25 13:19:38
@[WA鸭鸭](/space/show?uid=93249) orz……
by beargeng是女孩子 @ 2019-01-25 13:20:56
我觉得这是最短TLE了(10分)
```
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int x, y, sum;
cin>>x>>y;
for(int i=x; i<=y; i++)
for(int j=1; j<=i; j++)
if(i%j==0)
sum+=j;
cout<<sum<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
```
18行
by Φρανκ @ 2019-04-12 10:58:58
```
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int x, y, sum;
cin>>x>>y;
for(int i=x; i<=y; i++)
for(int j=1; j<=i; j++)
if(i%j==0)
sum+=j;
cout<<sum<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
```
by Φρανκ @ 2019-04-12 10:59:48
@[WA鸭鸭](/space/show?uid=93249) 同感
by Φρανκ @ 2019-04-12 11:00:07
@[Φρανκ](/space/show?uid=191387)
#include<iostream>
using namespace std;
int main()
{
int x,y,sum=0;cin>>x>>y;
for(int i=x;i<=y;i++)
for(int j=1;j<=i;j++)
if(i%j==0)sum+=j;
cout<<sum;
return 0;
}
我已经不能再删了
by VincentXu @ 2019-07-12 15:55:35
@[VincentXu](/space/show?uid=223251)
......
by Φρανκ @ 2019-07-14 15:30:24