結果

問題 No.1499 羊が、何匹だっけ
ユーザー e6i24v_kyoproe6i24v_kyopro
提出日時 2021-05-07 22:14:38
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 701 bytes
コンパイル時間 1,859 ms
コンパイル使用メモリ 171,780 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-10-13 13:25:49
合計ジャッジ時間 2,128 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using ll =long long;

using namespace std;

int main(){
    int N;
    cin>>N;
    
    string s;

    vector<string> vs;
    
    vector<string> ans(N);
    
    string tmp;
    
    for(int i=0;i<N;i++){
        for(int n=0;n<4;n++){
            cin>>tmp;
            cout<<tmp<<endl;
            vs.push_back(tmp);
        }
      
        vs[2]=to_string(stoi(vs[2])+1);
        
        for(int p=0;p<4;p++){
       
            ans[i].append(vs[p]);
            if(p<vs.size()-1){
                ans[i].push_back(' ');
            }
        }
     

        vs.clear();
       
        
    }
    
    for(int i=0;i<ans.size();i++){
        cout<<ans[i]<<endl;
    }
}
0