結果

問題 No.8042 本棚
ユーザー TKTYI
提出日時 2022-08-03 17:52:28
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 143 bytes
コンパイル時間 1,976 ms
コンパイル使用メモリ 174,728 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-13 11:16:50
合計ジャッジ時間 2,837 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:3:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | int N,i;main(){string B[52];for(;getline(cin,B[N]);)N++;sort(B,B+N);for(;i<N;)cout<<B[++i]<<endl;}
      |         ^~~~

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int N,i;main(){string B[52];for(;getline(cin,B[N]);)N++;sort(B,B+N);for(;i<N;)cout<<B[++i]<<endl;}
0