Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
20867 诸神黄昏 字符三角形 C++ Presentation Error 0 MS 244 KB 342 2023-06-22 16:21:03

Tests(0/1):


#include<iostream> using namespace std; int main() { int i, j, k; char c; cin >> c; for(i = 0; i <= 2; i ++) { for(j = 2 - i;j >= 0;j --) { cout << " "; } for(k = 1;k <= 2 * i + 1;k ++) { cout<< c; } cout << endl; } return 0; }


Judgement Protocol: