結果
問題 |
No.8042 本棚
|
ユーザー |
|
提出日時 | 2019-04-02 17:37:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 2,205 ms |
コンパイル使用メモリ | 209,808 KB |
最終ジャッジ日時 | 2025-01-07 01:19:42 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
#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<<std::endl;} return 0; }