提交时间:2020-07-29 10:58:31
运行 ID: 5314
#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; //5 p1/=2;p2/=2;p3/=2;p4/=2;p5=p1+p2+p3+p4+p5; // cout<<p1<<" "<<p2<<" "<<p3<<" "<<p4<<" "<<p5<<endl; //4 p1/=2;p2/=2;p3/=2;p5/=2;p4=p1+p2+p3+p4+p5; // cout<<p1<<" "<<p2<<" "<<p3<<" "<<p4<<" "<<p5<<endl; //3 p1/=2;p2/=2;p4/=2;p5/=2;p3=p1+p2+p3+p4+p5; // cout<<p1<<" "<<p2<<" "<<p3<<" "<<p4<<" "<<p5<<endl; //2 p1/=2;p3/=2;p4/=2;p5/=2;p2=p1+p2+p3+p4+p5; // cout<<p1<<" "<<p2<<" "<<p3<<" "<<p4<<" "<<p5<<endl; //1 p2/=2;p3/=2;p4/=2;p5/=2;p1=p1+p2+p3+p4+p5; cout<<p1<<" "<<p2<<" "<<p3<<" "<<p4<<" "<<p5<<endl; return 0; }