結果
| 問題 |
No.8042 本棚
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-01 21:46:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 253 bytes |
| コンパイル時間 | 2,299 ms |
| コンパイル使用メモリ | 200,496 KB |
| 最終ジャッジ日時 | 2025-01-07 00:57:21 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
using z=string;
z s,t;
using x=pair<z,z>;
set<x> a;
for(int i=0;i<n;++i) cin>>s>>t,a.insert(x(s,t));
for(x i:a)cout<<i.first<<" "<<i.second<<endl;
}