QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#673697 | #5279. New Time | IllusionaryDominance# | WA | 0ms | 3760kb | C++20 | 371b | 2024-10-25 09:08:28 | 2024-10-25 09:08:32 |
Judging History
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'