結果
問題 | No.702 中央値を求めよ LIMITED |
ユーザー |
![]() |
提出日時 | 2018-06-16 00:29:40 |
言語 | C++11 (gcc 13.3.0) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 654 ms |
コンパイル使用メモリ | 60,368 KB |
実行使用メモリ | 32,804 KB |
最終ジャッジ日時 | 2024-12-14 09:59:24 |
合計ジャッジ時間 | 22,859 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 MLE * 8 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 5 | main(){ | ^~~~
ソースコード
#include <iostream>#include <algorithm>using namespace std;uint32_t i,j,t,x,y=1,z=2,w=3,a[7500000];main(){cin>>x;for(i=10000001;i--;){t=x^x<<11,x=y;y=z;z=w;w^=w>>19^t^t>>8;w<3e9?a[j++]=w:0;}sort(a,a+j);cout << a[5000000] << endl;}