Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104257 | 高楷伦 | [在线测评解答教程] A+B Problem | C++ | Output Limit Exceeded | 1 MS | 268 KB | 464 | 2025-01-04 17:11:03 |
#include<bits/stdc++.h> using namespace std; string u; long long b,c,a,m; int main() { cin>>a>>b>>u>>c; if(c!=0) for(int i=1;i<=a;i++) { for(int j=1;j<=b;j++) { cout<<u; } cout<<endl; } else for(int i=1;i<=a;i++) { if(i==1||i==a) { for(int j=1;j<=b;j++) { cout<<u; } } else for(int j=1;j<=b;j++) { if(j==1||j==b) cout<<u; else cout<<" "; } cout<<endl; } return 0; }