[题解] P10676 『STA - R6』b20

简单题,主要考察字符串。

首先输入一个 char 类型的数组,然后输入粉丝的数量,最后直接输出数组的第一个以及粉丝的数量即可。

温馨提示:提交此题时请务必将数组开大,否则你可能会获得 \(90\) 分高分。

// 『STA - R6』b20
// code by:cq_irritater
// time:2024/06/30
#include <bits/stdc++.h>

using namespace std;

const int MAXN = 21;

int b;
char a[MAXN];

int main()
{
    // freopen("code.in", "r", stdin);
    cin >> a;
    scanf("%d", &b);
    printf("%c%d", a[0], b);
    return 0;
}

posted @ 2024-07-02 11:29  cq_irritater  阅读(31)  评论(0)    收藏  举报