思路:水题
#include<bits\stdc++.h>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
int Max = 0;
int Min = 999999;
for (int i = 0;i<7;i++)
{
int temp = 0;
int day = i;
for (int i = 0;i<n;i++)
{
if (day<2)
{
temp++;
}
day = (day+1)%7;
}
//int Max = 0;
//int Min = 99999999;
Max = max(Max,temp);
Min = min(Min,temp);
}
printf("%d %d\n",Min,Max);
}