Run ID:96164
提交时间:2024-11-03 10:16:59
#include<iostream> #include<iomanip> using namespace std; int main(){ // an = a1+(n-1)*d /** int a1,a2,n,d; cin>>a1>>a2>>n; d = a2-a1; cout<<a1+(n-1)*d; int a,b,c; cin>>a>>b>>c; cout<<(a*100)+(b*10)+c; int m,a,b,c,d; cin>>m; a = m/1000; m = m%1000; b = m/100; m = m%100; c = m/10; m = m%10; d = m/1; cout<<b*1000+a*100+d*10+c; **/ cout<<" "<<"\\"<<" "<<endl; cout<<" "<<"\\\\\\"<<" "<<endl; cout<<"\\\\\\\\\\"<<endl; cout<<" "<<"\\\\\\"<<" "<<endl; cout<<" "<<"\\"<<" "; return 0; }