結果

問題 No.3379 Third Max (C++)
コンテスト
ユーザー okkuu
提出日時 2025-11-22 14:45:28
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 2,150 ms
コンパイル使用メモリ 195,140 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2025-11-22 14:45:32
合計ジャッジ時間 3,534 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<bits/stdc++.h>
      |  ^~~~~~
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | main(int i){int a[10];for(i=10;i--;)std::cin>>a[i];std::sort(a,a+10);std::cout<<a[7]<<'\n';}
      | ^~~~
main.cpp:2:1: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain]

ソースコード

diff #
raw source code

#import<bits/stdc++.h>
main(int i){int a[10];for(i=10;i--;)std::cin>>a[i];std::sort(a,a+10);std::cout<<a[7]<<'\n';}
0