結果

問題 No.3379 Third Max (C++)
コンテスト
ユーザー shogo314
提出日時 2025-11-22 14:54:44
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 117 bytes
コンパイル時間 2,038 ms
コンパイル使用メモリ 195,772 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-11-22 14:54:48
合計ジャッジ時間 3,558 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 11 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:3:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    3 | int main(){char s[20];fgets(s,20,stdin);sort(s,s+20);cout<<s[16]<<endl;}
      |                       ~~~~~^~~~~~~~~~~~

ソースコード

diff #
raw source code

#include<bits/stdc++.h>
using namespace std;
int main(){char s[20];fgets(s,20,stdin);sort(s,s+20);cout<<s[16]<<endl;}
0