結果
| 問題 |
No.3379 Third Max (C++)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-22 03:10:11 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 101 bytes |
| コンパイル時間 | 1,779 ms |
| コンパイル使用メモリ | 195,392 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-11-22 12:40:24 |
| 合計ジャッジ時間 | 3,147 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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:15: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | int a[9],*p=a;main(){for(;std::cin>>*p++;)std::sort(a,p);printf("%d\n",a[7]);}
| ^~~~
ソースコード
#import<bits/stdc++.h>
int a[9],*p=a;main(){for(;std::cin>>*p++;)std::sort(a,p);printf("%d\n",a[7]);}