結果
問題 | No.8042 本棚 |
ユーザー |
|
提出日時 | 2019-04-01 21:18:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 2,355 ms |
コンパイル使用メモリ | 210,520 KB |
最終ジャッジ日時 | 2025-01-07 00:49:57 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<pair<string, string>> a(n); for (auto &e : a) { cin >> e.first >> e.second; } sort(begin(a), end(a)); for (auto e : a) { cout << e.first << " " << e.second << endl; } }