結果
| 問題 | No.8042 本棚 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-01 22:32:37 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 1,366 ms |
| コンパイル使用メモリ | 190,316 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-16 10:44:56 |
| 合計ジャッジ時間 | 2,121 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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';}