QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#492202 | #9156. 百万富翁 | leihonglongyin# | 0 | 865ms | 76016kb | C++14 | 391b | 2024-07-26 10:24:00 | 2024-07-26 10:24:01 |
Judging History
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];
}
詳細信息
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