結果
問題 | No.702 中央値を求めよ LIMITED |
ユーザー | ciel |
提出日時 | 2018-06-17 22:49:58 |
言語 | C (gcc 12.3.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 28,812 KB |
実行使用メモリ | 41,744 KB |
最終ジャッジ日時 | 2023-09-13 06:31:21 |
合計ジャッジ時間 | 26,582 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | MLE | - |
testcase_01 | MLE | - |
testcase_02 | MLE | - |
testcase_03 | MLE | - |
testcase_04 | MLE | - |
testcase_05 | MLE | - |
testcase_06 | MLE | - |
testcase_07 | MLE | - |
testcase_08 | MLE | - |
testcase_09 | MLE | - |
testcase_10 | MLE | - |
testcase_11 | MLE | - |
testcase_12 | MLE | - |
testcase_13 | MLE | - |
testcase_14 | MLE | - |
testcase_15 | MLE | - |
testcase_16 | MLE | - |
testcase_17 | MLE | - |
testcase_18 | MLE | - |
testcase_19 | MLE | - |
testcase_20 | MLE | - |
testcase_21 | MLE | - |
testcase_22 | MLE | - |
testcase_23 | MLE | - |
testcase_24 | MLE | - |
testcase_25 | MLE | - |
testcase_26 | MLE | - |
コンパイルメッセージ
main.c: 関数 ‘main’ 内: main.c:16:21: 警告: 互換性のないポインタ型から 4 番目の ‘qsort’ の引数に渡しています [-Wincompatible-pointer-types] 16 | qsort(a,n,4,"\x8b\7+\6\xc3"); | ^~~~~~~~~~~~~~~ | | | char * 次のファイルから読み込み: main.c:2: /usr/include/stdlib.h:828:34: 備考: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘char *’ 828 | __compar_fn_t __compar) __nonnull ((1, 4)); | ~~~~~~~~~~~~~~^~~~~~~~
ソースコード
#include <stdio.h> #include <stdlib.h> unsigned int a[6000000]; int main(){ unsigned int i=0,n=0,m=0,t,x,y=1,z=2,w=3; scanf("%u",&x); for(;i<10000001;i++){ t = (x^(x<<11)); x = y; y = z; z = w; w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)); if(w<1U<<30)m++; else if(w<(1U<<31|1U<<30))a[n++]=w; } qsort(a,n,4,"\x8b\7+\6\xc3"); printf("%u\n",a[5000000-m]); }