Official

B - ?UPC Editorial by cn449


初心者の方へ

文字列を受け取り、その文字列の \(1\) 文字目と UPC を順に出力すればよいです。

実装例

#include <bits/stdc++.h>
using namespace std;

int main() {
	string s;
	cin >> s;
	cout << s[0] << "UPC\n";
}

posted:
last update: