結果

問題 No.8042 本棚
ユーザー PachicobuePachicobue
提出日時 2019-04-02 17:35:50
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 2,337 ms
コンパイル使用メモリ 210,488 KB
最終ジャッジ日時 2025-01-07 01:19:29
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
int main()
{
    int N; std::cin >> N;
    using P = std::pair<std::string,std::string>;
    std::vector<P> p(N);
    for(auto& e:p){std::cin >> e.first >> e.second;}
    std::sort(p.begin(),p.end());
    for(const auto& e:p){std::cout << e.first << " "<< e.second;}
    return 0;
}
0