結果

問題 No.3379 Third Max (C++)
コンテスト
ユーザー siganai
提出日時 2025-12-15 13:54:48
言語 C++17
(gcc 13.3.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 108 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,068 ms
コンパイル使用メモリ 194,604 KB
実行使用メモリ 7,848 KB
スコア 85
最終ジャッジ日時 2025-12-15 13:54:52
合計ジャッジ時間 3,642 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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:13: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | int a[10],i;main(){while(i<10)std::cin>>a[i++];std::sort(a,a+i);printf("%d\n",a[7]);}
      |             ^~~~

ソースコード

diff #
raw source code

#import<bits/stdc++.h>
int a[10],i;main(){while(i<10)std::cin>>a[i++];std::sort(a,a+i);printf("%d\n",a[7]);}
0