結果
| 問題 |
No.3379 Third Max (C++)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-22 14:58:42 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 104 bytes |
| コンパイル時間 | 2,039 ms |
| コンパイル使用メモリ | 195,132 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-11-22 14:58:46 |
| 合計ジャッジ時間 | 3,638 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:2:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2 | int main(){char s[20];fgets(s,20,stdin);std::sort(s,s+19);printf("%c\n",s[16]);}
| ~~~~~^~~~~~~~~~~~
ソースコード
#include<bits/stdc++.h>
int main(){char s[20];fgets(s,20,stdin);std::sort(s,s+19);printf("%c\n",s[16]);}