Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109208 | 欧阳俊懿 | 函数求和 | C++ | Wrong Answer | 1 MS | 264 KB | 377 | 2025-02-06 15:33:58 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,f; char c; cin>>a>>b>>c>>f; for(int i=1;i<=a;i++) { for(int j=1;j<=b;j++) { if(i==1 || i==a) { cout<<c; } else if(j==1 || j==b) { cout<<c; } else if(f==0) { cout<<" "; } else { cout<<c; } } cout<<endl; } }
------Input------
0
------Answer-----
55 275 440
------Your output-----