QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#498073#9156. 百万富翁Jie_XuSheng#0 12ms24276kbC++14480b2024-07-29 22:41:232024-07-29 22:41:26

Judging History

你现在查看的是最新测评结果

  • [2024-07-29 22:41:26]
  • 评测
  • 测评结果:0
  • 用时:12ms
  • 内存:24276kb
  • [2024-07-29 22:41:23]
  • 提交

answer

#include "richest.h"
using namespace std;
#define pb push_back
const int N=1e6+10;
vector<int> a,b,sy;
int t[N];
int richest(int n, int T, int S) {
	if(n<=1000){
		a.clear(),b.clear();
		for(int i=0;i<n;i++){
			for(int j=i;j<n;j++){
				a.pb(i),b.pb(j);
			}
		}
		sy=ask(a,b);
		for(int i:sy){
			t[i]++;
		}
		int mx=0,id=0;
		for(int i=0;i<n;i++){
			if(t[i]>mx){
				mx=t[i];
				id=i;
			}
		}
		return id;
	}
//	for(int _=1;_<=)
    return 1;
}

Details

Tip: Click on the bar to expand more detailed information

Pretests

Pretest #1:

score: 0
Wrong Answer
time: 3ms
memory: 15208kb

input:

1000 1 499500 957319859

output:

Too many total elements in queries
1469670942222006797
0.000000
6906350380861515327

result:

points 0.0 Too many total elements in queries

Pretest #2:

score: 0
Wrong Answer
time: 8ms
memory: 24276kb

input:

1000000 20 2000000 29091473

output:

Wrong answer
4459638610240858557
0.000000
6906350380861515327

result:

points 0.0 Wrong answer


Final Tests

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 15108kb

input:

1000 1 499500 957319857

output:

Too many total elements in queries
1469670942222006797
0.000000
6906350380861515327

result:

points 0.0 Too many total elements in queries

Test #2:

score: 0
Wrong Answer
time: 12ms
memory: 23740kb

input:

1000000 20 2000000 29091471

output:

Wrong answer
4459638610240858557
0.000000
6906350380861515327

result:

points 0.0 Wrong answer