結果

問題 No.1499 羊が、何匹だっけ
ユーザー MisterMister
提出日時 2021-05-07 21:57:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 471 bytes
コンパイル時間 604 ms
コンパイル使用メモリ 66,876 KB
最終ジャッジ日時 2025-01-21 08:08:50
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

void solve() {
    for (int i = 0; i < 4; ++i) {
        if (i == 2) {
            int n;
            cin >> n;
            cout << n + 1 << " ";
        } else {
            string s;
            cin >> s;
            cout << s << " ";
        }
    }
    cout << "\n";
}

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    int q;
    cin >> q;
    while (q--) solve();

    return 0;
}
0