Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
20869 诸神黄昏 字符三角形 C++ Presentation Error 0 MS 256 KB 286 2023-06-22 16:40:49

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: