結果
| 問題 |
No.8042 本棚
|
| コンテスト | |
| ユーザー |
259_Momone
|
| 提出日時 | 2019-03-30 17:23:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 241 bytes |
| コンパイル時間 | 1,746 ms |
| コンパイル使用メモリ | 170,336 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 01:34:03 |
| 合計ジャッジ時間 | 2,603 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
4 | main(){
| ^~~~
ソースコード
#include<bits/stdc++.h>
using namespace std;
main(){
int N;
cin >> N;
pair<string, string> v[N];
for(auto&i : v)cin >> i.first >> i.second;
sort(v, v + N);
for(auto&i : v)cout << i.first << " " << i.second << endl;
}
259_Momone