結果

問題 No.8042 本棚
ユーザー occhan
提出日時 2019-04-01 22:40:43
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 1,661 ms
コンパイル使用メモリ 175,944 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 01:53:03
合計ジャッジ時間 2,557 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define ll long long
typedef pair<ll,ll> P;
#define M 1000000007
int main(){
  int n;
  cin>>n;
  string s,t;
  set<pair<string,string>> st;
  for(int i=0;i<n;i++){
    cin>>s>>t;
    st.insert(make_pair(s,t));
  }
  for(auto au:st){
    cout<<au.first<<" "<<au.second <<endl;
  }
}
0