QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#673697#5279. New TimeIllusionaryDominance#WA 0ms3760kbC++20371b2024-10-25 09:08:282024-10-25 09:08:32

Judging History

你现在查看的是最新测评结果

  • [2024-10-25 09:08:32]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3760kb
  • [2024-10-25 09:08:28]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

int main() {
    int a, b, c, d;
    scanf("%d:%d\n%d:%d", &a, &b, &c, &d);
    int ans = 0;
    while (b != d) {
        b ++;
        ans ++;
        if (b == 60) b = 0;
    }
    while (a != c) {
        a ++;
        ans ++;
        if (a == 24) a = 0;
    }
    cout << ans << endl;
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3760kb

input:

11:57
12:00

output:

4

result:

wrong answer 1st numbers differ - expected: '3', found: '4'