比赛 防止颓废的小练习v0.1 评测结果 AAAAAAAAAA
题目名称 质因数分解 最终得分 100
用户昵称 NVIDIA 运行时间 0.010 s
代码语言 C++ 内存使用 0.31 MiB
提交时间 2016-10-17 10:23:52
显示代码纯文本
  1. #include <cstring>
  2. #include <iostream>
  3. #include <cstdio>
  4. #include <cmath>
  5. using namespace std;
  6. int main()
  7. {
  8. freopen("prime.in","r",stdin);
  9. freopen("prime.out","w",stdout);
  10. ios::sync_with_stdio(false);
  11. long long n;
  12. cin>>n;
  13. for (long long i=2;i<pow(n,0.5);i++)
  14. if (n%i==0)
  15. {
  16. cout<<(n/i);
  17. return 0;
  18. }
  19. }