結果
問題 |
No.702 中央値を求めよ LIMITED
|
ユーザー |
![]() |
提出日時 | 2018-06-16 00:15:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 302 bytes |
コンパイル時間 | 5,601 ms |
コンパイル使用メモリ | 191,004 KB |
最終ジャッジ日時 | 2025-01-05 14:26:56 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | MLE * 2 |
other | MLE * 25 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 5 | main(){ | ^~~~
ソースコード
#include<bits/stdc++.h> using namespace std; const uint32_t d=3900000,T=(1u<<31)-d; uint32_t t,x,y=1,z=2,w=3,p,q[2*d],i; main(){ cin>>x; for(;i<10000001;++i){ t=x^(x<<11); x=y; y=z; z=w; w^=(w>>19)^t^(t>>8); w<T?++p:w<T+2*d&&++q[w-T]; } i=T-1; for(;p<5000001;)p+=q[++i-T]; cout<<i; }