結果

問題 No.8042 本棚
ユーザー toku
提出日時 2019-04-01 21:11:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 1,405 ms
コンパイル使用メモリ 167,900 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-26 10:14:24
合計ジャッジ時間 2,180 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 1 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<int(n); i++)
int main() {
	int n;
	cin >> n;
	vector<pair<char, string>> p(n);
	REP(i, n) {
		cin >> p[i].first >> p[i].second;
	}
	sort(p.begin(),p.end());
	REP(i, n)cout << p[i].first << ' ' << p[i].second << endl;
}
0