L1-015 跟奥巴马一起画方块 分数 15

注意格式

// 2'25"
#include <iostream>
using namespace std;
int main()
{
    int n;
    char c;
    cin >> n >> c;
    for(int j = 1; j <= (n + 1)/ 2; ++ j)
    {
        for(int i = 1; i <= n; ++ i)
            cout << c;
        if(j != n) cout << endl;
    }
    return 0;
}
posted @ 2024-07-31 20:59  Frodnx  阅读(11)  评论(0)    收藏  举报