Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96164 | 程诺 | 06输出菱形 | C++ | Accepted | 0 MS | 260 KB | 547 | 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; }