Submission #71694

# Submission time Handle Problem Language Result Execution time Memory
71694 2018-08-25T11:28:29 Z team(#2232, comfile) The Ant Doing Hard Work (FXCUP3_ant) C++
38 / 100
4 ms 560 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=(2*l+3*r)/5;
        int tmp=DeliverCount(mid);
        if(tmp){
            r=mid/tmp;
            l=max(mid/(tmp+1)+1,l);
        }
        else l=mid+1;
    }
    return l;
}
# Verdict Execution time Memory Grader output
1 Partially correct 3 ms 248 KB Partially correct : C = 35
2 Partially correct 2 ms 388 KB Partially correct : C = 33
3 Correct 3 ms 560 KB Correct
4 Partially correct 4 ms 560 KB Partially correct : C = 34
5 Correct 3 ms 560 KB Correct