結果
| 問題 |
No.8042 本棚
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-03 17:47:03 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 163 bytes |
| コンパイル時間 | 2,067 ms |
| コンパイル使用メモリ | 174,964 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 11:11:18 |
| 合計ジャッジ時間 | 2,861 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){int N;cin>>N;string B[N];getline(cin,B[0]);for(auto&s:B)getline(cin,s);sort(B,B+N);for(auto s:B)cout<<s<<endl;}
| ^~~~
ソースコード
#include<bits/stdc++.h>
using namespace std;
main(){int N;cin>>N;string B[N];getline(cin,B[0]);for(auto&s:B)getline(cin,s);sort(B,B+N);for(auto s:B)cout<<s<<endl;}