結果

問題 No.3195 Three-Letter Acronym
コンテスト
ユーザー vjudge1
提出日時 2025-12-06 02:08:46
言語 C++23
(gcc 13.3.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,105 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,744 ms
コンパイル使用メモリ 276,420 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-12-06 02:08:51
合計ジャッジ時間 3,960 ms
ジャッジサーバーID
(参考情報)
judge6 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

using namespace std;

#define int long long int
#define ld long double
#define vi vector<int>
#define pii pair<int, int>
#define vpii vector<pair<int, int>>

#define all(a) a.begin(), a.end()
#define popc __builtin_popcountll
#define nl cout << endl;
#define yesno(a) cout << ((a) ? "YES": "NO");
#define here cout << "here" << endl;
const int inf = 1e17 + 1;

int gcd(int a, int b) { return !b ? a : gcd(b, a % b); }
int lcm(int a, int b) { return (a / gcd(a, b)) * b; }

template <typename T>
void input(vector<T>& arr) {
    for(int i = 0; i < arr.size(); ++i) {
        cin >> arr[i];
    }
}

void solve() {
    string a, b, c;
    cin >> a >> b >> c;

    cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]);
}

signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);

    int t = 1;
    // cin >> t;
    for(int i = 1; i < t + 1; ++i) {
        // cout << "Case " << i << ": ";
        solve();
        nl
    }

    return 0;
}
0