QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#490663#9156. 百万富翁xvzhiming#0 124ms47148kbC++20337b2024-07-25 16:02:422024-07-25 16:02:45

Judging History

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

  • [2024-07-25 16:02:45]
  • 评测
  • 测评结果:0
  • 用时:124ms
  • 内存:47148kb
  • [2024-07-25 16:02:42]
  • 提交

answer

#pragma GCC optimize(2)
#pragma GCC optimize(3, "Ofast", "inline")

#include <bits/stdc++.h>
#include "richest.h"

using namespace std;

int richest(int n, int k, int m) {
	int id = 0;
	for (int i = 1; i < n; i++) {
		vector <int> c = ask({id}, {i});
		id = c[0];
	}
	return id;
}

//int main() {
//	
//	return 0;
//}

Details

Tip: Click on the bar to expand more detailed information

Pretests

Pretest #1:

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

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: 124ms
memory: 47148kb

input:

1000000 20 2000000 29091473

output:

Too many queries
1294109832092195181
0.000000
6906350380861515327

result:

points 0.0 Too many queries


Final Tests

Test #1:

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

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: 121ms
memory: 47080kb

input:

1000000 20 2000000 29091471

output:

Too many queries
1294109832092195181
0.000000
6906350380861515327

result:

points 0.0 Too many queries