結果

問題 No.3379 Third Max (C++)
コンテスト
ユーザー alcea
提出日時 2025-11-22 13:54:17
言語 C++17
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 383µs
コード長 93 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,069 ms
コンパイル使用メモリ 160,748 KB
実行使用メモリ 5,888 KB
スコア 101
最終ジャッジ日時 2026-07-16 22:10:26
合計ジャッジ時間 5,383 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
    1 | #import<atcoder/all>
      |  ^~~~~~
main.cpp:2:11: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | char s[9];main(){scanf("%[^a]",s);std::sort(s,s+19);s[17]=0;puts(s+16);}
      |           ^~~~
main.cpp: In function 'int main()':
main.cpp:2:58: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
    2 | char s[9];main(){scanf("%[^a]",s);std::sort(s,s+19);s[17]=0;puts(s+16);}
      |                                                     ~~~~~^~
main.cpp:2:6: note: at offset 17 into destination object 's' of size 9
    2 | char s[9];main(){scanf("%[^a]",s);std::sort(s,s+19);s[17]=0;puts(s+16);}
      |      ^
main.cpp:2:65: warning: 'int puts(const char*)' reading 1 or more bytes from a region of size 0 [-Wstringop-overread]
    2 | char s[9];main(){scanf("%[^a]",s);std::sort(s,s+19);s[17]=0;puts(s+16);}
      |                                                             ~~~~^~~~~~
main.cpp:2:6: note: at offset 16 into source object 's' of size 9
    2 | char s[9];main(){scanf("%[^a]",s);std::sort(s,s+19);s[17]=0;puts(s+16);}
      |      ^

ソースコード

diff #
raw source code

#import<atcoder/all>
char s[9];main(){scanf("%[^a]",s);std::sort(s,s+19);s[17]=0;puts(s+16);}
0