提交时间:2020-07-27 17:32:17
运行 ID: 5139
#include<bits/stdc++.h> using namespace std; int main(){ int n,p1,p2,p3,p4,p5; cin>>n; p1=n; p2=n; p3=n; p4=n; p5=n; p1=p1/2; p2=p2/2; p3=p3/2; p4=p4/2; p5=p1+p2+p3+p4+p5; p1=p1/2; p2=p2/2; p3=p3/2; p5=p5/2; p4=p1+p2+p3+p4+p5; p1=p1/2; p2=p2/2; p5=p5/2; p4=p4/2; p3=p1+p2+p3+p4+p5; p1=p1/2; p5=p5/2; p3=p3/2; p4=p4/2; p2=p1+p2+p3+p4+p5; p5=p5/2; p2=p2/2; p3=p3/2; p4=p4/2; p1=p1+p2+p3+p4+p5; cout<<p1<<" "<<p2<<" "<<p3<<" "<<p4<<" "<<p5; return 0; }