#include <iostream>
using namespace std;
int main() {
int x;
int t;
cin>>x;
t=15-x%100%15;
if(t==15)
t=0;
cout<<t;
return 0;
}
设某班公交车始发时间为08:00,每辆公交间隔为15分钟。已知现在的时间是公交车的正常运营时间(不考虑非运营时间),求还要等多久公交车会来
最新推荐文章于 2024-07-26 11:07:57 发布
#include <iostream>
using namespace std;
int main() {
int x;
int t;
cin>>x;
t=15-x%100%15;
if(t==15)
t=0;
cout<<t;
return 0;
}