QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#498071 | #9156. 百万富翁 | Jie_XuSheng# | 0 | 17ms | 27752kb | C++14 | 513b | 2024-07-29 22:40:20 | 2024-07-29 22:40:20 |
Judging History
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) {
for(int i=0;i<n;i++) sy.pb(i);
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: 0ms
memory: 15168kb
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: 16ms
memory: 27752kb
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: 6ms
memory: 15208kb
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: 17ms
memory: 26948kb
input:
1000000 20 2000000 29091471
output:
Wrong answer 4459638610240858557 0.000000 6906350380861515327
result:
points 0.0 Wrong answer