# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
300168 | model_code | Carnival Tickets (IOI20_tickets) | Java | 991 ms | 121900 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
// yanhao-full
class tickets {
int c,k,s;
int count_lower(int[] x, int target) {
int low = -1;
int high = x.length;
while(high-low>1) {
int mid = (low+high)/2;
if(x[mid] < target) {
low = mid;
} else {
high = mid;
}
}
return high;
}
int count = 0;
int get_median(int[][] arr) {
int low = -1;
int high = (int)2e9;
int target = -1;
int bigger = 0;
int smaller = 0;
while(high-low>1) {
smaller = 0;
bigger = 0;
target = low + (high-low)/2;
for(int i=0; i<arr.length; i++) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |