5 solutions
Information
- ID
- 1331
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- (None)
- # Submissions
- 189
- Accepted
- 65
- Uploaded By
#include <iostream>
int main() {
int s, v;
scanf("%d%d", &s, &v);
int need = (s + v - 1) / v + 10;
int total = 8 * 60 - need;
int h = total / 60;
int m = total % 60;
if (m < 0) h--, m += 60;
if (h < 0) h += 24;
printf("%02d:%02d\n", h, m);
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.