結果

問題 No.3379 Third Max (C++)
コンテスト
ユーザー siganai
提出日時 2025-12-11 17:27:49
言語 C++17
(gcc 13.3.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 113 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,800 ms
コンパイル使用メモリ 195,756 KB
実行使用メモリ 7,848 KB
スコア 80
最終ジャッジ日時 2025-12-11 17:27:53
合計ジャッジ時間 3,620 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:15: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | int a[10],i=0;main(){while(i<10)std::cin>>a[i++];std::sort(a,a+i);std::cout<<a[7]<<'\n';}
      |               ^~~~

ソースコード

diff #
raw source code

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