mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
808996d897
5100-5199
33 lines
613 B
C++
33 lines
613 B
C++
#include <iostream>
|
|
#include <cstdio>
|
|
#include <cstring>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
int n;
|
|
while(~scanf("%d",&n))
|
|
{
|
|
if(n<3)
|
|
{
|
|
printf("%d\n",n-1);
|
|
}
|
|
else if(n<5)
|
|
{
|
|
printf("%d %d\n",n-2,n-1);
|
|
}
|
|
else if(n<8)
|
|
{
|
|
printf("%d %d %d\n",n-4,n-2,n-1);
|
|
}
|
|
else if(n<16)
|
|
{
|
|
printf("%d %d %d %d\n",n-7,n-4,n-2,n-1);
|
|
}
|
|
else
|
|
{
|
|
printf("%d %d %d %d %d\n",n-15,n-7,n-4,n-2,n-1);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|