| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130719 | 任紫谦 | [在线测评解答教程] A+B Problem | C++ | Output Limit Exceeded | 1 MS | 272 KB | 316 | 2025-09-14 18:37:04 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int m; m=(n-1)/2-1; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if(j==0||j==n-1){ cout<<"|"; }else if(j==0||j==n-1||j==m){ cout<<"-"; }else{ cout<<"*"; } } cout<<endl; } return 0; }