记录编号 |
279301 |
评测结果 |
AAAAAAAAAA |
题目名称 |
[雅礼内测] 平方 |
最终得分 |
100 |
用户昵称 |
AntiLeaf |
是否通过 |
通过 |
代码语言 |
C++ |
运行时间 |
0.000 s |
提交时间 |
2016-07-09 06:25:04 |
内存使用 |
0.00 MiB |
显示代码纯文本
- #include<cstdio>
- #include<cstring>
- #include<cmath>
- #include<algorithm>
- #define squa(x) ((x)*(x))
- using namespace std;
- long long n,y=1;
- inline int MAIN(){
- #define MINE
- #ifdef MINE
- freopen("sqrt.in","r",stdin);
- freopen("sqrt.out","w",stdout);
- #endif
- scanf("%lld",&n);
- y=n;
- for(long long i=(long long)sqrt(n);i;i--)
- if(y%squa(i)==0)y/=squa(i);
- printf("%lld",n+y+(((long long)sqrt(n*y))<<1));
- return 0;
- }
- int main(){;}
- int hzoier=MAIN();