You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int s, v;
|
|
cin >> s >> v;
|
|
int t_walk = ceil(1.0 * s / v) + 10;//注意上取整
|
|
int from_zero = 60 * (24 + 8) - t_walk;
|
|
int hh = from_zero / 60 % 24;
|
|
int mm = from_zero % 60;
|
|
printf("%02d:%02d", hh, mm);
|
|
return 0;
|
|
} |