# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71774 | 2018-08-25T15:19:12 Z | 내일_개학이다_ㅠㅠ(#2253, mAng0) | The Ant Doing Hard Work (FXCUP3_ant) | C++ | 3 ms | 248 KB |
#include "ant.h" int FindK(){ int rett = DeliverCount(99999999); int ss = 1, ee = 99999999, ans = 99999999; ss = 99999999 / (rett+1) + 1; ee = 99999999 / rett; while(ss <= ee){ int mid = (ss+ee)/2; int ret = DeliverCount(mid); if(ret > 0){ ans = mid; }else{ ss = mid + 1; } } return ans; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 3 ms | 248 KB | Execution failed because the return code was nonzero |
2 | Halted | 0 ms | 0 KB | - |