QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#492202#9156. 百万富翁leihonglongyin#0 865ms76016kbC++14391b2024-07-26 10:24:002024-07-26 10:24:01

Judging History

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

  • [2024-07-26 10:24:01]
  • 评测
  • 测评结果:0
  • 用时:865ms
  • 内存:76016kb
  • [2024-07-26 10:24:00]
  • 提交

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<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: 7980kb

input:

1000 1 499500 957319859

output:

Too many queries
1294109832092195181
0.000000
6906350380861515327

result:

points 0.0 Too many queries

Pretest #2:

score: 0
Wrong Answer
time: 863ms
memory: 75992kb

input:

1000000 20 2000000 29091473

output:

Index out of bounds
9775460264716263939
0.000000
6906350380861515327

result:

points 0.0 Index out of bounds


Final Tests

Test #1:

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

input:

1000 1 499500 957319857

output:

Too many queries
1294109832092195181
0.000000
6906350380861515327

result:

points 0.0 Too many queries

Test #2:

score: 0
Wrong Answer
time: 865ms
memory: 76016kb

input:

1000000 20 2000000 29091471

output:

Index out of bounds
9775460264716263939
0.000000
6906350380861515327

result:

points 0.0 Index out of bounds