提交时间:2019-10-05 16:46:37

运行 ID: 1181

#include<iostream> int main(){ int n,a,b,c,d,e; scanf("%d",&n); e=(n/2*4+n)/16; d=(n/4*3+e*16/2+n/2)/8; c=(n/8*2+e*16/4+d*8/2+n/4)/4; b=(n/16+e*16/8+d*8/4+c*4/2+n/8)/2; a=n*5-e-d-c-b; printf("%d %d %d %d %d",a,b,c,d,e); return 0; }