Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4906 | 李宇轩 | 输出九九乘法表 | C++ | Accepted | 0 MS | 256 KB | 585 | 2024-10-04 17:59:29 |
#include<iostream> //# include<iomanip> using namespace std; int main() { // for(int i=1;i<=3;i++){ // for(int j=1;j<=8;j++) // cout<<"*"; // cout<<endl; // } // int i,j,n; // cin>>n; // for(int i=1;i<=n;i++){ // for(int j=1;j<=i;j++) // cout<<"*"; // cout<<endl; // } // int i,j,n; // cin>>n; // for(int i=1;i<=n;i++){ // for(int j=1;j<=n-i;j++) // cout<<" "; // for(int j=1;j<=i;j++) // cout<<"*"; // cout<<endl; // } for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++) cout<<j<<"*"<<i<<"="<<j*i<<" "; cout<<endl; } return 0; }