过不去!

P5707 【深基2.例12】上学迟到

dcx60 @ 2024-05-25 12:18:33

救救我(垂死挣扎)


by _th_tw_on_ @ 2024-05-25 12:21:22

你代码呢


by 残阳如血 @ 2024-05-25 12:21:40

@dcx60 你代码都不发谁救你


by lixuanxi @ 2024-05-25 12:40:18

@dcx60 代码呢?


by forever_nope @ 2024-05-25 12:43:02

早上好啊


by lpsz2024wcs @ 2024-05-25 13:22:23

@dcx60

#include<bits/stdc++.h>
using namespace std;
int main() {
    int s, u;
    cin >> s >> u;
    int a = 480 + 24 * 60 - (ceil(s / u) + 10);
    if(a > 24 * 60) a-= 24 * 60;
    int b = a % 60;
    int c = a / 60;
    if( s % u != 0) b--;
    printf("%02d:%02d",c,b);
    return 0;
}

出发时间可能在前一天!(警钟)


by dcx60 @ 2024-07-23 09:10:54

谢谢,孩子瞎发的,才看到,谢谢大家的帮助


|