結果

問題 No.8042 本棚
コンテスト
ユーザー chocopuu
提出日時 2019-04-02 03:11:18
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 139 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,045 ms
コンパイル使用メモリ 190,044 KB
実行使用メモリ 9,908 KB
最終ジャッジ日時 2026-09-30 20:09:54
合計ジャッジ時間 2,549 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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:30: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | using namespace std;string s;main(){cin>>s;set<string>a;while(getline(cin,s))a.insert(s+"\n");for(auto e:a)cout<<e;}
      |                              ^~~~

ソースコード

diff #
raw source code

#import<bits/stdc++.h>
using namespace std;string s;main(){cin>>s;set<string>a;while(getline(cin,s))a.insert(s+"\n");for(auto e:a)cout<<e;}
0