'commit'
This commit is contained in:
14
TangDou/LuoGuBook/P5707.cpp
Normal file
14
TangDou/LuoGuBook/P5707.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user