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