Submission #71688

# Submission time Handle Problem Language Result Execution time Memory
71688 2018-08-25T11:21:05 Z team(#2232, comfile) The Ant Doing Hard Work (FXCUP3_ant) C++
90 / 100
3 ms 552 KB
#include <bits/stdc++.h>
#include "ant.h"
using namespace std;
int FindK(){
    int l=1; int r=1e8-1;
    while(l<r){
        int mid=(l+r)/2;
        int tmp=DeliverCount(mid);
        if(tmp){
            r=mid/tmp;
            l=max((mid+1)/(tmp+1)-1,l);
        }
        else l=mid+1;
    }
    return l;
}
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 248 KB Partially correct : C = 27
2 Partially correct 3 ms 484 KB Partially correct : C = 27
3 Correct 2 ms 500 KB Correct
4 Partially correct 3 ms 500 KB Partially correct : C = 27
5 Correct 2 ms 552 KB Correct