結果
問題 | No.8042 本棚 |
ユーザー |
![]() |
提出日時 | 2019-04-01 21:06:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 18 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 2,231 ms |
コンパイル使用メモリ | 210,028 KB |
最終ジャッジ日時 | 2025-01-07 00:47:25 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
#include <bits/stdc++.h>#define rep(i,n) for(int i=0;i<n;i++)using namespace std;typedef pair<string, string> P;int main(){int n;cin>>n;vector<P> d(n);rep(i,n) cin>>d[i].first>>d[i].second;sort(d.begin(),d.end());rep(i,n) cout<<d[i].first<<" "<<d[i].second<<endl;}