結果
| 問題 | No.8042 本棚 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-02 15:44:51 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 137 bytes |
| 記録 | |
| コンパイル時間 | 1,879 ms |
| コンパイル使用メモリ | 190,148 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-28 04:58:13 |
| 合計ジャッジ時間 | 2,995 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 21 RE * 3 |
コンパイルメッセージ
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");}