結果
| 問題 | No.8042 本棚 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-02 17:37:30 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 350µs | |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 1,416 ms |
| コンパイル使用メモリ | 233,176 KB |
| 実行使用メモリ | 9,788 KB |
| 最終ジャッジ日時 | 2026-10-11 19:55:17 |
| 合計ジャッジ時間 | 2,866 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}