結果
問題 |
No.8042 本棚
|
ユーザー |
👑 |
提出日時 | 2021-11-02 15:44:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 137 bytes |
コンパイル時間 | 1,834 ms |
コンパイル使用メモリ | 173,708 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 20:04:46 |
合計ジャッジ時間 | 3,637 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 18 RE * 6 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import"bits/stdc++.h" | ^~~~~~ main.cpp:2:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | int i,j;main(){std::string A[51];for(;getline(std::cin,A[i++]););sort(A,A+i);for(;i>j;std::cout<<A[++j+1]<<"\n");} | ^~~~
ソースコード
#import"bits/stdc++.h" int i,j;main(){std::string A[51];for(;getline(std::cin,A[i++]););sort(A,A+i);for(;i>j;std::cout<<A[++j+1]<<"\n");}