結果
| 問題 |
No.8042 本棚
|
| コンテスト | |
| ユーザー |
square1001
|
| 提出日時 | 2019-04-01 22:32:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 151 bytes |
| コンパイル時間 | 1,811 ms |
| コンパイル使用メモリ | 175,600 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-28 01:52:44 |
| 合計ジャッジ時間 | 2,672 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 24 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<bits/stdc++.h>
| ^~~~~~
main.cpp:2:42: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | using namespace std;int N,i;string s[55];main(){for(cin>>N,i=N+1;i--;)getline(cin,s[i]);for(sort(s,s+N);i<N;)cout<<s[++i]+'\n';}
| ^~~~
ソースコード
#import<bits/stdc++.h>
using namespace std;int N,i;string s[55];main(){for(cin>>N,i=N+1;i--;)getline(cin,s[i]);for(sort(s,s+N);i<N;)cout<<s[++i]+'\n';}
square1001