- 历届试题 核桃的数量
 1级测验最后一题
- @ 2023-7-25 13:43:27
 
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int N;
    cin>>N;
    int max=0;
    for(int i=2;i<=N;i++)
    {
        while(N%i==0)
        {
            max=i;
            N/=i;
        }
    }
    cout<<max;
    return 0;
}
        0 comments
  
  No comments so far...
            Information
- ID
 - 640
 - Time
 - 1000ms
 - Memory
 - 256MiB
 - Difficulty
 - 7
 - Tags
 - # Submissions
 - 33
 - Accepted
 - 10
 - Uploaded By