文章

133

粉丝

17

获赞

260

访问

6.5k

头像
偷菜时间表 题解:
P1053
发布于2026年3月17日 17:43
阅读数 34

#include<iostream>
#include<cmath>
#include<algorithm>
#include<string>
#include<map>
using namespace std;
int main() {
    int a, b, n;
    char c;
    cin >> n;
    while (n--) {
        int hour = 0, minute = 0;
        cin >> a >> c >> b;
        if (b + 15 < 60) {
            minute = b + 15;
        }
        else {
            minute = (b + 15) % 60;
            hour = 1;
        }
        if (a + 13 < 24) {
            hour += 13 + a;
        }
        else {
            hour = (hour + 13 + a) % 24;
        }...

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发