| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82139 | 胡盛哲 | 字符串拼接 | C++ | Wrong Answer | 1 MS | 268 KB | 295 | 2024-07-13 08:43:01 |
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { bool cd1 = (i == j); bool cd2 = (j == (N - i - 1)); if (cd1 || cd2) cout << '+'; else cout << '-'; } cout << endl; } }
------Input------
executing users 13
------Answer-----
r
------Your output-----