QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#492205#9156. 百万富翁leihonglongyin#11.00002 2268ms99288kbC++14393b2024-07-26 10:26:502024-07-26 10:26:51

Judging History

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

  • [2024-07-26 10:26:51]
  • 评测
  • 测评结果:11.00002
  • 用时:2268ms
  • 内存:99288kb
  • [2024-07-26 10:26:50]
  • 提交

answer

#include "richest.h"
#include<bits/stdc++.h>
using namespace std;
int richest(int N,int T,int S){vector<int>now;
    for(int i=0;i<N;i++)now.push_back(i);
    while(now.size()>1){
    	vector<int>a,b;int lst=0;
		for(int i=0;i+1<now.size();i+=2)a.push_back(now[i]),b.push_back(now[i+1]);
		if(now.size()&1)lst=now.back();
		now=ask(a,b);if(lst)now.push_back(lst);
	}return now[0];
}

Details

Tip: Click on the bar to expand more detailed information

Pretests

Pretest #1:

score: 0
Wrong Answer
time: 1ms
memory: 8148kb

input:

1000 1 499500 957319859

output:

Too many queries
1294109832092195181
0.000000
6906350380861515327

result:

points 0.0 Too many queries

Pretest #2:

score: 11
Acceptable Answer
time: 2268ms
memory: 99288kb

input:

1000000 20 2000000 29091473

output:

Partially correct Case 2, 11 / 85, maxt = 20, maxs = 999999
1811468636458994965
0.129412
3823502568050958645

result:

points 0.129412 Partially correct Case 2, 11 / 85, maxt = 20, maxs = 999999


Final Tests

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 8080kb

input:

1000 1 499500 957319857

output:

Too many queries
1294109832092195181
0.000000
6906350380861515327

result:

points 0.0 Too many queries

Test #2:

score: 11
Acceptable Answer
time: 2245ms
memory: 99248kb

input:

1000000 20 2000000 29091471

output:

Partially correct Case 2, 11 / 85, maxt = 20, maxs = 999999
1811468636458994965
0.129412
3823502568050958645

result:

points 0.129412 Partially correct Case 2, 11 / 85, maxt = 20, maxs = 999999