結果

問題 No.8042 本棚
コンテスト
ユーザー p-adic
提出日時 2022-08-14 16:01:15
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.90.0)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 140 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,158 ms
コンパイル使用メモリ 208,428 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-06-27 01:29:36
合計ジャッジ時間 3,444 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 22 RE * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:9: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | int i,N;main(){std::string S[51];for(;std::getline(std::cin,S[N]);N++)sort(S,S+N);while(i++<N)std::cout<<S[i]+"\n";}
      |         ^~~~

ソースコード

diff #
raw source code

#include<bits/stdc++.h>
int i,N;main(){std::string S[51];for(;std::getline(std::cin,S[N]);N++)sort(S,S+N);while(i++<N)std::cout<<S[i]+"\n";}
0