結果
| 問題 |
No.8042 本棚
|
| コンテスト | |
| ユーザー |
veqcc
|
| 提出日時 | 2019-04-01 21:11:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 554 bytes |
| コンパイル時間 | 1,783 ms |
| コンパイル使用メモリ | 116,708 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 01:39:38 |
| 合計ジャッジ時間 | 2,802 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <string>
#include <vector>
#include <random>
#include <bitset>
#include <queue>
#include <cmath>
#include <stack>
#include <set>
#include <map>
using namespace std;
typedef pair<string, string> P;
int i,n;
string s,d;
P p[55];
int main() {
cin >> n;
for (; i < n; i++) {
cin >> s >> d;
p[i] = P(s, d);
}
sort(p, p + n);
for (i = 0; i < n; i++) {
cout << p[i].first << " " << p[i].second << "\n";
}
return 0;
}
veqcc