小朋友分巧克力 错题回收站

张志鹏  •  5年前


#include<iostream> int main(){ int a,b,c,d,e,f; scanf("%d",&a); b=c=d=e=f=a; b=b/2; c=c/2; d=d/2; e=e/2; f=b+c+d+e+f; b=b/2; c=c/2; d=d/2; f=f/2; e=b+c+d+e+f; b=b/2; c=c/2; e=e/2; f=f/2; d=b+c+d+e+f; b=b/2; d=d/2; e=e/2; f=f/2; c=b+c+d+e+f; c=c/2; d=d/2; e=e/2; f=f/2; b=b+c+d+e+f; printf("%d %d %d %d %d",b,c,d,e,f); return 0; }


评论: