Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
126794 | 刘嘉乐 | 九九乘法表2 | C++ | 解答错误 | 0 | 0 MS | 244 KB | 227 | 2024-01-24 17:07:19 |
#include<bits/stdc++.h> using namespace std; int main(){ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ cout<<i<<"*"<<j<<"="; cout<<setiosflags(ios_base::left)<<setw(4)<<i*j; } cout<<'\n'; } return 0; }