buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
h1,m1,h2,m2,k = map(int,input().split())
d=h2*60+m2-h1*60+m1-k
print(d) | h1,m1,h2,m2,k = map(int,input().split())
d=(h2*60+m2)-(h1*60+m1)-k
print(d) | [["+", 0, 662, 12, 657, 31, 657, 31, 23, 0, 24], ["+", 0, 662, 12, 657, 31, 657, 31, 23, 0, 25], ["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 24], ["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 25]] | 5 | 41 |
H1, M1, H2, M2, K = map(int, input().split())
time = H2*60+M1 - (H1*60+M1)
print(time - K) | H1, M1, H2, M2, K = map(int, input().split())
time = H2*60+M2 - (H1*60+M1)
print(time - K)
| [["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22]] | 5 | 43 |
h1,m1,h2,m2,k=map(int,input().split())
tot=0
if m2>=m1:
tot+=(m2-m1)+60*(h2-h1)
else:
h2=h2-1
m2+=60+m2
tot+=(h2-h1)*60+(m2-m1)
print(max(0,tot-k))
|
h1,m1,h2,m2,k=map(int,input().split())
tot=0
if m2>=m1:
tot+=(m2-m1)+60*(h2-h1)
else:
h2=h2-1
m2=60+m2
tot+=(h2-h1)*60+(m2-m1)
print(max(0,tot-k))
| [["-", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32]] | 5 | 83 |
h1, m1, h2, m2, k = map(int, input().split())
t1 = h1 * 60 + m1
t2 = h2 * 60 + m1
print(t2-t1 - k)
| h1, m1, h2, m2, k = map(int, input().split())
t1 = h1 * 60 + m1
t2 = h2 * 60 + m2
print(t2-t1 - k) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 44 |
h1,m1,h2,m2,k = map(int,input().split())
h = h2 - h1
m = m2 - m1
print((60*h-m)-k) | h1,m1,h2,m2,k = map(int,input().split())
h = h2 - h1
m = m2 - m1
print((60*h+m)-k) | [["-", 3, 4, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 72]] | 5 | 44 |
H1, M1, H2, M2, K = map(int, input().split())
J = H2 - H1
if (M1 > M2):
J -= 1
F = 60 - M1
else:
F = M2 - M1
F = J * 60 + F
print(F - K) | H1, M1, H2, M2, K = map(int, input().split())
J = H2 - H1
if (M1 > M2):
J -= 1
F = 60 + M2 - M1
else:
F = M2 - M1
F = J * 60 + F
print(F - K)
| [["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 72], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22]] | 5 | 62 |
// Copyright © 2020 Diego Garcia Rodriguez del Campo. All rights reserved.
#include <bits/stdc++.h>
#define MAX 200005
#define optimiza_io \
cin.tie(0); \
ios_base::sync_with_stdio(0);
#defin... | // Copyright © 2020 Diego Garcia Rodriguez del Campo. All rights reserved.
#include <bits/stdc++.h>
#define MAX 200005
#define optimiza_io \
cin.tie(0); \
ios_base::sync_with_stdio(0);
#defin... | [["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 72]] | 1 | 111 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = 1e9 + 7;
const ll longinf = 5LL << 60;
const ll mod = 1e9 + 7;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
cout << M1 + M2 + 60 * (H2 - H1) - K;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = 1e9 + 7;
const ll longinf = 5LL << 60;
const ll mod = 1e9 + 7;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
cout << M2 - M1 + 60 * (H2 - H1) - K;
return 0;
}
| [["-", 0, 16, 12, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 16, 12, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 12, 22]] | 1 | 84 |
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int h1 = scn.nextInt();
int m1 = scn.nextInt();
int h2 = scn.nextInt();
int m2 = scn.nextInt();
int k = scn.nextInt();
int wakeUpTime = ((h2 - h1) * 60) + m1 - m2;... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int h1 = scn.nextInt();
int m1 = scn.nextInt();
int h2 = scn.nextInt();
int m2 = scn.nextInt();
int k = scn.nextInt();
int wakeUpTime = ((h2 - h1) * 60) + m2 - m1;... | [["-", 0, 503, 49, 200, 51, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 33], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 33], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 22]] | 3 | 119 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <ve... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <ve... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 192 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define rep2(i, s, n) for (ll i = s; i < (ll)(n); i++)
#define repr(i, n) for (ll i = n; i >= 0; i--)
#define pb push_back
#define COUT(x) cout << (x) << endl
#define COUTF(x) cout << setprecision(15) << (x) << endl
#define ENDL cout << endl
#d... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define rep2(i, s, n) for (ll i = s; i < (ll)(n); i++)
#define repr(i, n) for (ll i = n; i >= 0; i--)
#define pb push_back
#define COUT(x) cout << (x) << endl
#define COUTF(x) cout << setprecision(15) << (x) << endl
#define ENDL cout << endl
#d... | [["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]] | 1 | 205 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int INF = 1001001001;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int h = k / 60;
int m = k ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int INF = 1001001001;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int h = k / 60;
int m = k ... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33]] | 1 | 121 |
#include <math.h>
#include <stdio.h>
int main() {
int h1, h2, m1, m2, k;
int time, ans;
scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k);
time = h2 * 60 + m2 - h1 * 60 + m1;
ans = time - k;
printf("%d\n", ans);
return 0;
} | #include <math.h>
#include <stdio.h>
int main() {
int h1, h2, m1, m2, k;
int time, ans;
scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k);
time = (h2 * 60 + m2) - (h1 * 60 + m1);
ans = time - k;
printf("%d\n", ans);
return 0;
} | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]] | 0 | 81 |
#include <bits/stdc++.h>
#define ll long long int
#define ul unsigned long long int
#define va vector<long long int> a
#define vb vector<long long int> b
const ll M = 1e9 + 7;
const ll inf = 1e18 + 5;
using namespace std;
void fast() {
cin.tie(0);
cout.tie(0);
ios_base::sync_with_stdio(0);
}
ll bs(ll arr[], ll l,... | #include <bits/stdc++.h>
#define ll long long int
#define ul unsigned long long int
#define va vector<long long int> a
#define vb vector<long long int> b
const ll M = 1e9 + 7;
const ll inf = 1e18 + 5;
using namespace std;
void fast() {
cin.tie(0);
cout.tie(0);
ios_base::sync_with_stdio(0);
}
ll bs(ll arr[], ll l,... | [["-", 51, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 51, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 43, 49, 50, 51, 23, 0, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 12, 22]] | 1 | 295 |
h, m, H, M, K = map(int, input().split())
if M >= m :
k = (H - h) * 60
k += M - m
else :
k = (h - h - 1) * 60
k += 60 - m
k += M
if k - K <= 0 :
print(0)
else :
print(k - K) | h, m, H, M, K = map(int, input().split())
if M >= m :
k = (H - h) * 60
k += M - m
else :
k = (H - h - 1) * 60
k += 60 - m
k += M
if k - K <= 0 :
print(0)
else :
print(k - K) | [["-", 12, 657, 31, 23, 0, 657, 31, 657, 31, 22], ["+", 12, 657, 31, 23, 0, 657, 31, 657, 31, 22]] | 5 | 81 |
H1, M1, H2, M2, K = map(int, input().split())
h=(H2-H1)*60
m=M2-M1
print(h-m-K) | H1, M1, H2, M2, K = map(int, input().split())
h=(H2-H1)*60
m=M2-M1
print(h+m-K) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72]] | 5 | 44 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int hour = h2 - h1;
int minute = m2 - m1;
int time = hour * 60 - minute - k;
if (time < 0) {
time = 0;
}
cout << time << endl;
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int hour = h2 - h1;
int minute = m2 - m1;
int time = hour * 60 + minute - k;
if (time < 0) {
time = 0;
}
cout << time << endl;
return 0;
} | [["-", 0, 43, 49, 50, 51, 16, 31, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 72]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int64_t MOD = 1000000007;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
cout << H2 * 60 + M2 - H1 * 60 - M2 - K;
} | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int64_t MOD = 1000000007;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
cout << H2 * 60 + M2 - H1 * 60 - M1 - K;
}
| [["-", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22]] | 1 | 58 |
H1,M1,H2,M2,K = map(int,input().split())
K_time = (H2*60+M2) - (H1*60-M1)
print(K_time - K) | H1,M1,H2,M2,K = map(int,input().split())
K_time = (H2*60+M2) - (H1*60+M1)
print(K_time - K) | [["-", 0, 662, 12, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 72]] | 5 | 45 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FOR(i) for (cin >> i; i > 0; i--)
#define elif else if
#define pb push_back
#define ll long long
#define mp make_pair
#define all(x) x.begin(), x.end()
#define re(x) ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FOR(i) for (cin >> i; i > 0; i--)
#define elif else if
#define pb push_back
#define ll long long
#define mp make_pair
#define all(x) x.begin(), x.end()
#define re(x) ... | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]] | 1 | 106 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// 読み込み
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 - h1) * 60 - (m2 - m1) - k << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
// 読み込み
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 - h1) * 60 + (m2 - m1) - k << endl;
}
| [["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72]] | 1 | 56 |
H1, M1, H2, M2, K = map(int,input().split())
dH = H2-H1
dM = M2-M1
dm = 60*dH+dM-1
print(dm//K*K) | H1, M1, H2, M2, K = map(int,input().split())
dH = H2-H1
dM = M2-M1
dm = 60*dH+dM
print(dm-K) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33]] | 5 | 49 |
h1, m1, h2, m2, k = map(int, input().split())
h = h2 - h1
m = m2 - m2
if m < 0:
m = 60 + m
h -= 1
ans = h * 60 + m - k
print(ans) | h1, m1, h2, m2, k = map(int, input().split())
h = h2 - h1
m = m2 - m1
if m < 0:
m = 60 + m
h -= 1
ans = h * 60 + m - k
print(ans) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 58 |
#ifdef Rahul
#include "RAHUL.h"
#else
#include <bits/stdc++.h>
using namespace std;
#define error(...) 42;
#endif
#define SZ(v) int((v).size())
#define ALL(vec) begin(vec), end(vec)
typedef long long i64;
template <typename T> inline bool uax(T &x, T y) {
return (y > x) ? x = y, true : false;
}
template <typename T> ... | #ifdef Rahul
#include "RAHUL.h"
#else
#include <bits/stdc++.h>
using namespace std;
#define error(...) 42;
#endif
#define SZ(v) int((v).size())
#define ALL(vec) begin(vec), end(vec)
typedef long long i64;
template <typename T> inline bool uax(T &x, T y) {
return (y > x) ? x = y, true : false;
}
template <typename T> ... | [["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 72]] | 1 | 226 |
#include <iostream>
using namespace std;
int H1, M1, H2, M2, K;
int main() {
cin >> H1 >> M1 >> H2 >> M2 >> K;
int d = (60 * H2 + M2) - (60 * H1 - M1);
cout << d - K << endl;
return 0;
} | #include <iostream>
using namespace std;
int H1, M1, H2, M2, K;
int main() {
cin >> H1 >> M1 >> H2 >> M2 >> K;
int d = (60 * H2 + M2) - (60 * H1 + M1);
cout << d - K << endl;
return 0;
} | [["-", 49, 50, 51, 16, 12, 23, 0, 16, 17, 33], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 17, 72]] | 1 | 65 |
#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
void dout() { cerr << endl; }
typedef long long ll;
template <typename Head, typename... Tail> void dout(Head H, Tail... T) {
cerr << H << ' ';
dout(T...);
}
#define debug(x) cout << #x " = " << (x... | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
void dout() { cerr << endl; }
typedef long long ll;
template <typename Head, typename... Tail> void dout(Head H, Tail... T) {
cerr << H << ' ';
dout(T...);
}
#define debug(x) cout << #x " = " << (x... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 345 |
h1,m1,h2,m2,k=map(int,input().split())
if m1<=m2:
print(max((h2-h1)*60+m2-m1-k),0)
else:
print(max((h2-h1-1)*60+m2+60-m1-k,0))
| h1,m1,h2,m2,k=map(int,input().split())
if m1<=m2:
print(max((h2-h1)*60+m2-m1-k,0))
else:
print(max((h2-h1-1)*60+m2+60-m1-k,0)) | [["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 75 |
H1, M1, H2, M2, K = map(int, input().split())
print(H2*60+M2 - H1*60+M1 - K) | H1, M1, H2, M2, K = map(int, input().split())
print(H2*60+M2 - (H1*60+M1) - K) | [["+", 3, 4, 0, 657, 31, 657, 12, 23, 0, 24], ["+", 3, 4, 0, 657, 31, 657, 12, 23, 0, 25]] | 5 | 38 |
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#defi... | #include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#defi... | [["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 110], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22]] | 1 | 333 |
#include <bits/stdc++.h>
typedef long long int lld;
typedef unsigned long long int llu;
#define INF (lld)(9223372036854775807)
#define IINF (int)(2147483647)
using namespace std;
int main(void) {
lld h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 * 60 + m2 - h1 * 60 + m1 - k) << "\n";
}
| #include <bits/stdc++.h>
typedef long long int lld;
typedef unsigned long long int llu;
#define INF (lld)(9223372036854775807)
#define IINF (int)(2147483647)
using namespace std;
int main(void) {
lld h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 * 60 + m2 - (h1 * 60 + m1) - k) << "\n";
}
| [["+", 12, 23, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 12, 23, 0, 25]] | 1 | 77 |
H1, M1, H2, M2, K = map(int, input().split())
H = H2 - H1
M = abs(M2 - M1)
answer = H*60 + M - K
print(answer) | H1, M1, H2, M2, K = map(int, input().split())
H = H2 - H1
M = M2 - M1
answer = H*60 + M - K
print(answer) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 48 |
// Code for A - Study Scheduling
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int h = h2 - h1;
int m = m2 - m1;
if (!(m >= 0)) {
h--;
}
int total = h * 60 + m;
cout << total - k << endl;
return 0;
}
| // Code for A - Study Scheduling
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int h = h2 - h1;
int m = m2 - m1;
if (!(m >= 0)) {
h--;
m = m + 60;
}
int total = h * 60 + m;
cout << total - k << endl;
return 0;
}
| [["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 84 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long h1, m1, h2, m2, k, r = 0;
cin >> h1 >> m1 >> h2 >> m2 >> k;
r = h2 * 60 + m2 - h1 * 60 - m2;
cout << r - k;
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long h1, m1, h2, m2, k, r = 0;
cin >> h1 >> m1 >> h2 >> m2 >> k;
r = h2 * 60 + m2 - h1 * 60 - m1;
cout << r - k;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 65 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, e;
scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
printf("%d\n", c * 60 + d - a * 60 + b - e);
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e;
scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
printf("%d\n", c * 60 + d - a * 60 - b - e);
return 0;
}
| [["-", 0, 2, 3, 4, 0, 16, 31, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 33]] | 1 | 70 |
#include <bits/stdc++.h>
using namespace std;
template <class A, class B> inline bool chmax(A &a, const B &b) {
return b > a && (a = b, true);
}
template <class A, class B> inline bool chmin(A &a, const B &b) {
return b < a && (a = b, true);
}
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> p... | #include <bits/stdc++.h>
using namespace std;
template <class A, class B> inline bool chmax(A &a, const B &b) {
return b > a && (a = b, true);
}
template <class A, class B> inline bool chmin(A &a, const B &b) {
return b < a && (a = b, true);
}
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> p... | [["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]] | 1 | 284 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int h1 = Integer.parseInt(sc.next());
int m1 = Integer.parseInt(sc.next());
int h2 = Integer.parseInt(sc.next());
int m2 = Integer.parseInt(sc.next());
int k... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int h1 = Integer.parseInt(sc.next());
int m1 = Integer.parseInt(sc.next());
int h2 = Integer.parseInt(sc.next());
int m2 = Integer.parseInt(sc.next());
int k... | [["-", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 499], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72]] | 3 | 165 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
int main() {
ll h1, m1, h2, m2;
cin >> h1 >> m1 >> h2 >> m2;
ll k;
cin >> k;
ll ans = 0;
ans = abs(h2 - h1) * 60 + abs(m2 - m1) - k;
cout << ans;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
int main() {
ll h1, m1, h2, m2;
cin >> h1 >> m1 >> h2 >> m2;
ll k;
cin >> k;
ll ans = 0;
ans = abs(h2 - h1) * 60 + (m2 - m1) - k;
cout << ans;
return 0;
}
| [["-", 0, 11, 12, 16, 31, 16, 12, 2, 63, 22]] | 1 | 83 |
H1, M1, H2, M2, K = map(int, input().split())
H = H2 - H1
M = 0
if M2 - M1 >= 0:
M = M2 - M1
else:
M = M1 - M2 + 60
H -= 1
ans = H*60 + M - K
print(ans) | H1, M1, H2, M2, K = map(int, input().split())
H = H2 - H1
M = 0
if M2 - M1 >= 0:
M = M2 - M1
else:
M = M2 - M1 + 60
H -= 1
ans = H*60 + M - K
print(ans) | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 22], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 33], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 33], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22]] | 5 | 67 |
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
us... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
us... | [["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22]] | 1 | 304 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int H1 = sc.nextInt();
int M1 = sc.nextInt();
int H2 = sc.nextInt();
int M2 = sc.nextInt();
int K = sc.nextInt();
int min = (H2 * 60 + M2) - (H1 * 60 - M1) - K;
System.out.pr... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int H1 = sc.nextInt();
int M1 = sc.nextInt();
int H2 = sc.nextInt();
int M2 = sc.nextInt();
int K = sc.nextInt();
int min = (H2 * 60 + M2) - (H1 * 60 + M1) - K;
System.out.pr... | [["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 72]] | 3 | 109 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
scanf("%d%d%d%d%d", &h1, &m1, &h2, &m2, &k);
int t = h2 * 60 + m2 - h1 * 60 - m2;
if (t < 0)
t = -t;
printf("%d\n", max(0, t - k));
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
scanf("%d%d%d%d%d", &h1, &m1, &h2, &m2, &k);
int t = h2 * 60 + m2 - h1 * 60 - m1;
if (t < 0)
t = -t;
printf("%d\n", max(0, t - k));
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 91 |
a, b, c, d, k = map(int, input().split())
print(c * 60 + d - a * 60 - d - k) | a, b, c, d, k = map(int, input().split())
print(c * 60 + d - a * 60 - b - k) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22]] | 5 | 38 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ff first
#define ss second
#define quick \
ios::sync_with_stdio(false); \
cin.tie(0);
#define time cerr << (0.1 * clock()) / CLO... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ff first
#define ss second
#define quick \
ios::sync_with_stdio(false); \
cin.tie(0);
#define time cerr << (0.1 * clock()) / CLO... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 140 |
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL_DEBUG
#include "LOCAL_DEBUG.hpp"
#endif
#define int long long
const int INF = 1LL << 60;
signed main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int l = h2 * 60 + m2 - (h1 * 60 + m1);
int ans = (l - 1) / k * k;
cout << ans << endl;... | #include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL_DEBUG
#include "LOCAL_DEBUG.hpp"
#endif
#define int long long
const int INF = 1LL << 60;
signed main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int l = h2 * 60 + m2 - (h1 * 60 + m1);
int ans = l - k;
cout << ans << endl;
return... | [["-", 49, 50, 51, 16, 31, 16, 31, 23, 0, 24], ["-", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["-", 49, 50, 51, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 17, 85], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48]] | 1 | 92 |
import java.io.*;
import java.util.*;
public class Main {
private static int solve(int h1, int m1, int h2, int m2, int k) {
return h2 * 60 + m2 - h1 * 60 - m2 - k;
}
private static void execute(ContestReader reader, ContestWriter out) {
int h1 = reader.nextInt();
int m1 = reader.nextInt();
int h2... | import java.io.*;
import java.util.*;
public class Main {
private static int solve(int h1, int m1, int h2, int m2, int k) {
return h2 * 60 + m2 - h1 * 60 - m1 - k;
}
private static void execute(ContestReader reader, ContestWriter out) {
int h1 = reader.nextInt();
int m1 = reader.nextInt();
int h2... | [["-", 8, 196, 0, 37, 0, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 37, 0, 16, 31, 16, 12, 22]] | 3 | 1,782 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
int a;
a = (H2 - H1) * 60 + (M1 - M2) - K;
cout << a << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
int a;
a = (H2 - H1) * 60 + (M2 - M1) - K;
cout << a << endl;
} | [["-", 12, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 12, 22]] | 1 | 62 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, string> P;
int main() {
ll a, b, c, d, k, ans;
cin >> a >> b >> c >> d >> k;
ans = (c * 60 + d) - (a * 60 + b) - k;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, string> P;
int main() {
ll a, b, c, d, k, ans;
cin >> a >> b >> c >> d >> k;
ans = (c * 60 + d) - (a * 60 + b) - k;
cout << ans;
return 0;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 82 |
H1, M1, H2, M2, K = map(int, input().split())
time = 60*H2+M2 - 60*H1+M1
print(max(time-K, 0))
| H1, M1, H2, M2, K = map(int, input().split())
time = (60*H2+M2) - (60*H1+M1)
print(max(time-K, 0))
| [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 46 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int H_1, M_1, H_2, M_2, K;
cin >> H_1 >> M_1 >> H_2 >> M_2 >> K;
int M;
M = (H_2 - H_1) * 60 - (M_2 - M_1);
cout << M - K;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int H_1, M_1, H_2, M_2, K;
cin >> H_1 >> M_1 >> H_2 >> M_2 >> K;
int M;
M = (H_2 - H_1) * 60 + (M_2 - M_1);
cout << M - K;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72]] | 1 | 60 |
h1, m1, h2, m2, m = map(int, input().split())
if m2 < m1:
mm = m2 + 60 - m1
else:
mm = m2 - m1
t = (h2 - h1) * 60 + mm
if t < m:
print(0)
else:
print(t - m) | h1, m1, h2, m2, m = map(int, input().split())
if m2 < m1:
mm = m2 - m1
else:
mm = m2 - m1
t = (h2 - h1) * 60 + mm
if t < m:
print(0)
else:
print(t - m) | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 72], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612]] | 5 | 69 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(x) (x).begin(), (x).end()
using namespace std;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
int ans = 0;
ans = (c - a) * 60 + (d - a) - e + 10;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(x) (x).begin(), (x).end()
using namespace std;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
int ans = 0;
ans = (c - a) * 60 + (d - b) - e;
cout << ans << endl;
return 0;
} | [["-", 31, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 83 |
[h1,m1,h2,m2,k] = [int(i) for i in input().split()]
print((h2 - h1) * 60 + (m1 - m2) - k)
| [h1,m1,h2,m2,k] = [int(i) for i in input().split()]
print((h2 - h1) * 60 + (m2 - m1) - k)
| [["-", 0, 657, 31, 657, 12, 23, 0, 657, 31, 22], ["-", 0, 657, 31, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 657, 31, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 657, 31, 657, 12, 23, 0, 657, 12, 22]] | 5 | 46 |
H1, M1, H2, M2, K = map(int, input().split())
ans = max(0, H2 * 60 + M1 - H1 * 60 - M1 - K)
print(ans)
| H1, M1, H2, M2, K = map(int, input().split())
ans = max(0, H2 * 60 + M2 - H1 * 60 - M1 - K)
print(ans)
| [["-", 0, 657, 31, 657, 31, 657, 31, 657, 12, 22], ["+", 0, 657, 31, 657, 31, 657, 31, 657, 12, 22]] | 5 | 46 |
import java.io.*;
import java.util.*;
class Main {
public static void main(String args[]) {
int h1 = readI(), m1 = readI(), h2 = readI(), m2 = readI(), k = readI();
if (h1 > h2 || (h1 == h2 && m1 > m2)) {
h2 += 24;
}
int t = (h2 - h1) * 60 + (m2 - m2) - k;
pl(t + "");
}
static final Buf... | import java.io.*;
import java.util.*;
class Main {
public static void main(String args[]) {
int h1 = readI(), m1 = readI(), h2 = readI(), m2 = readI(), k = readI();
if (h1 > h2 || (h1 == h2 && m1 > m2)) {
h2 += 24;
}
int t = (h2 - h1) * 60 + (m2 - m1) - k;
pl(t + "");
}
static final Buf... | [["-", 51, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 12, 22]] | 3 | 595 |
H1,M1,H2,M2,K = list(map(int,input().split()))
Hsa = (H2 - H1)*60
Msa = (M2 - M1)
ans = Hsa - Msa - K
if ans <= 0:
print(0)
else:
print(ans) | H1,M1,H2,M2,K = list(map(int,input().split()))
Hsa = (H2 - H1)*60
Msa = (M2 - M1)
ans = Hsa + Msa - K
if ans <= 0:
print(0)
else:
print(ans) | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 33], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 72]] | 5 | 63 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define each(a, x) for (auto a : (x))
#define all(a) (a).begin(), (a).end()
#define chmin(a, b) ((a) = min((a), (b)))
#define chmax(a, b) ((a) = max((a), (b)))
#define in_range(x, l, r)... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define each(a, x) for (auto a : (x))
#define all(a) (a).begin(), (a).end()
#define chmin(a, b) ((a) = min((a), (b)))
#define chmax(a, b) ((a) = max((a), (b)))
#define in_range(x, l, r)... | [["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["+", 31, 16, 12, 16, 31, 16, 12, 23, 0, 24]] | 1 | 203 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
int x = (c - a) * 60 - (d - b);
cout << x - e << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
int x = (c - a) * 60 + (d - b) - e;
cout << x << endl;
return 0;
}
| [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 69 |
#include <bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL << ((ll)n))
#define SUBS(s, f, t) ((s).substr((f), (t) - (f)))
#define ALL... | #include <bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL << ((ll)n))
#define SUBS(s, f, t) ((s).substr((f), (t) - (f)))
#define ALL... | [["-", 31, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["-", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]] | 1 | 207 |
#include <iostream>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 - h1) * 60 + m1 + m2 - k << endl;
} | #include <iostream>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 - h1) * 60 + m2 - m1 - k << endl;
} | [["-", 31, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 53 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main(void) {
int h1, m1, h2, m2, d;
scanf("%d%d%d%d%d", &h1, &m1, &h2, &m2, &d);
h2 -= h1;
m2 -= m1;
int x = h2 * 60 + m2 - 1;
printf("%d", x - x % d);
return 0... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main(void) {
int h1, m1, h2, m2, d;
scanf("%d%d%d%d%d", &h1, &m1, &h2, &m2, &d);
h2 -= h1;
m2 -= m1;
int x = h2 * 60 + m2;
printf("%d", x - d);
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 0, 2, 3, 4, 0, 16, 12, 16, 31, 22], ["-", 0, 2, 3, 4, 0, 16, 12, 16, 17, 109]] | 1 | 94 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll a, b, c, d, k;
cin >> a >> b >> c >> d >> k;
ll x = (c - a) * 60;
ll y = b + d;
cout << x + y - k << "\n";
return 0;
} | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll a, b, c, d, k;
cin >> a >> b >> c >> d >> k;
ll x = (c - a) * 60;
ll y = d - b;
cout << x + y - k << "\n";
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 71 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
void read(int &x) {
int f = 1;
x = 0;
char s = getchar();
while (s < '0' || s > '9') {
if (s == '-')
f = -1;
s = getchar();
}
while (s >= '0' && s <= '9') {
x = x * 10 + s - '0';
s = getchar();
}
x *= f;
}
int main... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
void read(int &x) {
int f = 1;
x = 0;
char s = getchar();
while (s < '0' || s > '9') {
if (s == '-')
f = -1;
s = getchar();
}
while (s >= '0' && s <= '9') {
x = x * 10 + s - '0';
s = getchar();
}
x *= f;
}
int main... | [["-", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 85]] | 1 | 163 |
h1, m1, h2, m2, k = map(int,input().split())
minutes = (h2-h1)*60 - (m2-m1)
print(max(0,minutes-k)) | h1, m1, h2, m2, k = map(int,input().split())
minutes = (h2-h1)*60 + (m2-m1)
print(max(0,minutes-k)) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72]] | 5 | 48 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for (ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define hina... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for (ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define hina... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 153 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
typedef long long llong;
typedef unsigned long long ullong;
// -2.1e-9 <= int <= 2.1e9
// -9.2e-18 <= long lo... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
typedef long long llong;
typedef unsigned long long ullong;
// -2.1e-9 <= int <= 2.1e9
// -9.2e-18 <= long lo... | [["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]] | 1 | 100 |
h1, m1, h2, m2, k = map(int,input().split())
print(h2*60 + m2 - h1*60 + m1 - k) | h1, m1, h2, m2, k = map(int,input().split())
print(int(h2*60 + m2 - h1*60 - m1 - k)) | [["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 38 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T> using v2 = vector<vector<T>>;
template <typename T> inline v2<T> fill(int r, int c, T t) {
return v2<T>(r, vector<T>(c, t));
}
int a, b, c, d, k;
void solve() {
cin >> a >> b >> c >> d >> k;
cout << max(0, (c - a) * 60 - (... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T> using v2 = vector<vector<T>>;
template <typename T> inline v2<T> fill(int r, int c, T t) {
return v2<T>(r, vector<T>(c, t));
}
int a, b, c, d, k;
void solve() {
cin >> a >> b >> c >> d >> k;
cout << (c - a) * 60 + (d - b) ... | [["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 21], ["-", 0, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["-", 12, 2, 3, 4, 0, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 153 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
int ans = c * 60 + d - a * 60 - b;
cout << ans - 2 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
int ans = c * 60 + d - a * 60 - b;
cout << ans - e << endl;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 58 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D, E;
cin >> A >> B >> C >> D >> E;
cout << (C - A) * 60 + D - B - 120 << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D, E;
cin >> A >> B >> C >> D >> E;
cout << (C - A) * 60 + D - B - E << endl;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 53 |
#include <bits/stdc++.h>
#define ref(i, n) for (int i = 0; i < n; i++)
using namespace std;
int a, b, a1, b1, k;
int main() {
cin >> a >> b >> a1 >> b1 >> k;
int h = (a1 - a) * 60 + b - b1 - k;
cout << h;
return 0;
}
| #include <bits/stdc++.h>
#define ref(i, n) for (int i = 0; i < n; i++)
using namespace std;
int a, b, a1, b1, k;
int main() {
cin >> a >> b >> a1 >> b1 >> k;
int h = (a1 - a) * 60 + b1 - b - k;
cout << h;
return 0;
}
| [["-", 49, 50, 51, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22]] | 1 | 67 |
h_1, m_1, h_2, m_2, k = map(int, input().split())
print(h_1*60+m_1-h_2*60-m_2-k) | h_1, m_1, h_2, m_2, k = map(int, input().split())
print(-h_1*60-m_1+h_2*60+m_2-k) | [["+", 31, 657, 31, 657, 31, 657, 31, 664, 17, 33], ["-", 0, 657, 31, 657, 31, 657, 31, 657, 17, 72], ["-", 0, 657, 31, 657, 31, 657, 31, 657, 12, 22], ["+", 0, 657, 31, 657, 31, 657, 31, 657, 12, 22], ["+", 3, 4, 0, 657, 31, 657, 31, 657, 17, 72], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 65... | 5 | 38 |
#include <cstdio>
int a, b, x, y, k, ans;
int main() {
scanf("%d%d%d%d%d", &x, &y, &a, &b, &k);
ans = (a - x) * 60 + b - y;
printf("%d", (ans - 1) / k * k);
} | #include <cstdio>
int a, b, x, y, k, ans;
int main() {
scanf("%d%d%d%d%d", &x, &y, &a, &b, &k);
ans = (a - x) * 60 + b - y;
printf("%d", ans - k);
} | [["-", 3, 4, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["-", 3, 4, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 17, 85], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]] | 1 | 74 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
#define all(x) x.begin(), x.end()
template <typename T1, typename T2> inline void chkmin(T1 &x, const T2 &y) {
if (x > y)
x = y;
}
template <typename T1, typename T2> inline void chkmax(T1... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
#define all(x) x.begin(), x.end()
template <typename T1, typename T2> inline void chkmin(T1 &x, const T2 &y) {
if (x > y)
x = y;
}
template <typename T1, typename T2> inline void chkmax(T1... | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22]] | 1 | 212 |
H1, M1, H2, M2, K = map(int, input().split())
time = (H2 - H1) * 60 + (M1 - M2)
print(time - K) | H1, M1, H2, M2, K = map(int, input().split())
time = (H2 - H1) * 60 + (M2 - M1)
print(time - K) | [["-", 0, 662, 12, 657, 12, 23, 0, 657, 31, 22], ["-", 0, 662, 12, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 12, 22]] | 5 | 43 |
H1, M1, H2, M2, K = [ int(i) for i in input().strip().split(' ')]
print(H2 * 60 + M2 - (H1 * 60 + M2) - K) | H1, M1, H2, M2, K = [ int(i) for i in input().strip().split(' ')]
print(H2 * 60 + M2 - (H1 * 60 + M1) - K) | [["-", 0, 657, 31, 657, 12, 23, 0, 657, 12, 22], ["+", 0, 657, 31, 657, 12, 23, 0, 657, 12, 22]] | 5 | 51 |
H,M,h,m,K = map(int,input().split())
ans=(h*60+m)-(H*60+m)-K
print(ans) | H,M,h,m,K = map(int,input().split())
ans=(h*60+m)-(H*60+M)-K
print(int(ans)) | [["-", 12, 657, 31, 657, 12, 23, 0, 657, 12, 22], ["+", 12, 657, 31, 657, 12, 23, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 45 |
h1, m1, h2, m2, k = map(int, input().split())
t1 = 60 * h1 + m1
t2 = 60 * h2 * m2
print(t2 - t1 - k) | h1, m1, h2, m2, k = map(int, input().split())
t1 = 60 * h1 + m1
t2 = 60 * h2 + m2
print(t2 - t1 - k) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72]] | 5 | 44 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define in(n) cin >> (n)
#define out(ans) cout << (ans) << endl;
#define keta(n) cout << fixed << setprecision((n));
using ll = int64_t;
using v = vector<int>;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >>... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define in(n) cin >> (n)
#define out(ans) cout << (ans) << endl;
#define keta(n) cout << fixed << setprecision((n));
using ll = int64_t;
using v = vector<int>;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >>... | [["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33]] | 1 | 92 |
h_1,m_1_h_2,m_2,k = map(int,input().split())
H = 60*h_2+m_2-(60*h_1+m_1)-k
if(H<=0):
print(0)
else:
print(H)
| h_1,m_1,h_2,m_2,k = map(int,input().split())
H = 60*h_2+m_2-(60*h_1+m_1)-k
if(H<=0):
print(0)
else:
print(H)
| [["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21]] | 5 | 54 |
def main():
hs,ms,he,me,k = map(int,input().split())
h = he - hs
m = me - ms
h *= 60
if m >= 0:
h += m
else:
h += -m - 60
print(h - k)
if __name__=='__main__':
main()
| def main():
hs,ms,he,me,k = map(int,input().split())
h = he - hs
m = me - ms
h *= 60
if m >= 0:
h += m
else:
h += m
print(h - k)
if __name__=='__main__':
main()
| [["-", 0, 1, 0, 677, 12, 657, 31, 664, 17, 33], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 17, 33], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 12, 612]] | 5 | 72 |
H, M, h, m, K = map(int, input().split())
print((60*h + m - 60*H - M)//K) | H, M, h, m, K = map(int, input().split())
print(60*h + m - 60*H - M - K) | [["-", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["-", 0, 652, 3, 4, 0, 657, 31, 23, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int min = (h2 * 60 + m2) - (h1 * 60 - m1) - k;
cout << min << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int min = (h2 * 60 + m2) - (h1 * 60 + m1) - k;
cout << min << endl;
return 0;
}
| [["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 72]] | 1 | 65 |
#define _GLIBCXX_DEBUG
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define r... | #define _GLIBCXX_DEBUG
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define r... | [["-", 0, 11, 12, 16, 31, 16, 31, 16, 31, 13]] | 1 | 140 |
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll GCD(ll a, ll b) { return a ? GCD(b % a, a) : b; }
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m2 >> h2 >> m2 >> k;
int h3 = k / 60;
int m3 = k % 60;
h1 += h3;
m1 += m3;
h1 += m1 / 60;
m1 %= 60;
cout << (h2 - h1) * 60 + (m2 - m... | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll GCD(ll a, ll b) { return a ? GCD(b % a, a) : b; }
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int h3 = k / 60;
int m3 = k % 60;
h1 += h3;
m1 += m3;
h1 += m1 / 60;
m1 %= 60;
cout << (h2 - h1) * 60 + (m2 - ... | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22]] | 1 | 116 |
#include <bits/stdc++.h>
using namespace std;
#define db(x) cout << x << '\n'
#define db1(x) cout << #x << "=" << x << '\n'
#define db2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << '\n'
#define db3(x, y, z) \
cout << #x << "=" << x << "," << #y <<... | #include <bits/stdc++.h>
using namespace std;
#define db(x) cout << x << '\n'
#define db1(x) cout << #x << "=" << x << '\n'
#define db2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << '\n'
#define db3(x, y, z) \
cout << #x << "=" << x << "," << #y <<... | [["-", 0, 41, 64, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 41, 64, 23, 0, 16, 31, 16, 17, 33]] | 1 | 302 |
h1,m1,h2,m2,k = map(int,input().split())
print(h2*60+m2-h1*60+m1-k) | h1,m1,h2,m2,k = map(int,input().split())
print((h2*60+m2)-(h1*60+m1)-k) | [["+", 3, 4, 0, 657, 31, 657, 31, 23, 0, 24], ["+", 3, 4, 0, 657, 31, 657, 31, 23, 0, 25], ["+", 3, 4, 0, 657, 31, 657, 12, 23, 0, 24], ["+", 3, 4, 0, 657, 31, 657, 12, 23, 0, 25]] | 5 | 38 |
h,m,H,M,k = map(int,input().split())
v = H*60+M
u = h*60+M+k
print(v-u) | h,m,H,M,k = map(int,input().split())
v = H*60+M
u = h*60+m+k
print(v-u) | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22]] | 5 | 44 |
#include <stdio.h>
int main(void) {
int a, b, c, d, e;
int h1 = 0;
int h2 = 0;
int ans = 0;
scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
h1 = a * 60 + b;
h2 = c * 60 + d;
ans = h1 - h2;
printf("%d\n", ans - e);
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b, c, d, e;
int h1 = 0;
int h2 = 0;
int ans = 0;
scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
h1 = a * 60 + b;
h2 = c * 60 + d;
ans = h2 - h1;
printf("%d\n", ans - e);
return 0;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 0 | 94 |
h1, m1, h2, m2, k = map(int, input().split())
h = h2 - h1
if m2 >= m1:
m = m2 - m1
else:
m = m1 - m2
h -= 1
working_time = h*60 + m
print(working_time - k)
| h1, m1, h2, m2, k = map(int, input().split())
h = h2 - h1
if m2 >= m1:
m = m2 - m1
else:
m = 60 - (m1 - m2)
h -= 1
working_time = h*60 + m
print(working_time - k)
| [["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 60 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int h = 0;
int m = 0;
int H1 = sc.nextInt();
int M1 = sc.nextInt();
int H2 = sc.nextInt();
int M2 = sc.nextInt();
int K = sc.nextInt();
h = H2 - H1;
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int h = 0;
int m = 0;
int H1 = sc.nextInt();
int M1 = sc.nextInt();
int H2 = sc.nextInt();
int M2 = sc.nextInt();
int K = sc.nextInt();
h = H2 - H1;
... | [["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 22]] | 3 | 139 |
<?php
$input = fgets(STDIN);
$input_array = explode(" ", $input);
$int_array = array_map( function($value) { return (int)$value; }, $input_array);
$ans= $int_array[2]*60+$int_array[3]-$int_array[0]*60+$int_array[1]-$int_array[4];
echo $ans; | <?php
$input = fgets(STDIN);
$input_array = explode(" ", $input);
$int_array = array_map( function($value) { return (int)$value; }, $input_array);
$ans= $int_array[2]*60+$int_array[3]-$int_array[0]*60-$int_array[1]-$int_array[4];
echo $ans; | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 33]] | 6 | 87 |
#include <stdio.h>
int main() {
int H1 = 0;
int M1 = 0;
int H2 = 0;
int M2 = 0;
int K = 0;
int T = 0;
scanf("%d %d %d %d %d", &H1, &M1, &H2, &M2, &K);
T = (60 * H2 + M2) - (60 * H1 + M2) - K;
printf("%d", T);
return 0;
} | #include <stdio.h>
int main() {
int H1 = 0;
int M1 = 0;
int H2 = 0;
int M2 = 0;
int K = 0;
int T = 0;
scanf("%d %d %d %d %d", &H1, &M1, &H2, &M2, &K);
T = (60 * H2 + M2 - K) - (60 * H1 + M1);
printf("%d", T);
return 0;
} | [["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 0 | 92 |
#ifdef _MSC_VER
#include <__msvc_all_public_headers.hpp>
#undef min
#undef max
#else
#include <bits/stdc++.h>
#endif
using namespace std;
using large = long long;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
auto x = h2 * 60 + m2 - h1 * 60 + m1;
if (x < 0)
x += 24 * 60;
cout <... | #ifdef _MSC_VER
#include <__msvc_all_public_headers.hpp>
#undef min
#undef max
#else
#include <bits/stdc++.h>
#endif
using namespace std;
using large = long long;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
auto x = (h2 * 60 + m2) - (h1 * 60 + m1);
if (x < 0)
x += 24 * 60;
co... | [["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]] | 1 | 91 |
h1, m1, h2, m2, k = list(map(int, input().split()))
h3 = h2 - h1
m3 = m2 - m1
if m3 < 0:
h2 = h2 - 1
m3 = 60 - m1 + m2
a = h3 * 60 + m3
ans = a - k
print(ans)
| h1, m1, h2, m2, k = list(map(int, input().split()))
h3 = h2 - h1
m3 = m2 - m1
if m3 < 0:
h3 = h3 - 1
m3 = 60 - m1 + m2
a = h3 * 60 + m3
ans = a - k
print(ans)
| [["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 31, 22]] | 5 | 68 |
#include <stdio.h>
int main(void) {
int h1, m1, h2, m2, k, h1_m, h2_m, d;
scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k);
h1_m = h1 * 60;
h2_m = h2 * 60;
d = h2_m + m2 - (h1_m + m2) - k;
printf("%d\n", d);
return 0;
}
| #include <stdio.h>
int main(void) {
int h1, m1, h2, m2, k, h1_m, h2_m, d;
scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k);
h1_m = h1 * 60;
h2_m = h2 * 60;
d = h2_m + m2 - (h1_m + m1) - k;
printf("%d\n", d);
return 0;
}
| [["-", 12, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 12, 22]] | 0 | 87 |
function main(input) {
const args = input[0].split(' ').map(n => parseInt(n, 10));
const hour = (args[2] - args[0]) * 60;
const minute = args[3] - args[1];
const result = hour + minute - args[4];
console.log(result);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | function main(input) {
const args = input.split(' ').map(n => parseInt(n, 10));
const hour = (args[2] - args[0]) * 60;
const minute = args[3] - args[1];
const result = hour + minute - args[4];
console.log(result);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | [["-", 63, 558, 500, 2, 63, 558, 500, 69, 0, 70], ["-", 63, 558, 500, 2, 63, 558, 500, 69, 71, 555], ["-", 63, 558, 500, 2, 63, 558, 500, 69, 0, 73]] | 2 | 104 |
#include <iostream>
int main() {
int64_t H1, M1, H2, M2, K;
std::cin >> H1 >> M1 >> H2 >> M2 >> K;
std::cout << ((H2 * 60 + M2) - (H1 * 60 + M1) - 1) / K * K << std::endl;
return 0;
} | #include <iostream>
int main() {
int64_t H1, M1, H2, M2, K;
std::cin >> H1 >> M1 >> H2 >> M2 >> K;
std::cout << (H2 * 60 + M2) - (H1 * 60 + M1) - K << std::endl;
return 0;
} | [["-", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["-", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]] | 1 | 68 |
a, b, c, d,e = map(int,input().split())
minute = (c-a)*60-(d-b)
if minute<=e:
print(0)
else:
print(minute-e) | a, b, c, d,e = map(int,input().split())
minute = (c-a)*60+(d-b)
if minute<=e:
print(0)
else:
print(minute-e) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72]] | 5 | 54 |
h1, m1,h2,m2,k = map(int,input().split())
if h2 * 60 + m2 >h1* 60 + m2:
r = (h2 * 60 + m2) -(h1* 60 + m2) - k
else:
r = (h2 * 60 + m2) + 24 * 60 - (h1* 60 + m2) - k
print(r) | h1, m1,h2,m2,k = map(int,input().split())
if h2 * 60 + m2 >h1* 60 + m1:
r = (h2 * 60 + m2) -(h1* 60 + m1) - k
else:
r = (h2 * 60 + m2) + 24 * 60 - (h1* 60 + m1) - k
print(r) | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["-", 12, 657, 31, 657, 12, 23, 0, 657, 12, 22], ["+", 12, 657, 31, 657, 12, 23, 0, 657, 12, 22]] | 5 | 83 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define MOD (1000000007)
using namespace std;
typedef long long ll;
typedef pair<ll, ll> tup;
const int MAX = 510000;
long long fac[MAX], finv[MAX], inv[M... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define MOD (1000000007)
using namespace std;
typedef long long ll;
typedef pair<ll, ll> tup;
const int MAX = 510000;
long long fac[MAX], finv[MAX], inv[M... | [["-", 49, 50, 51, 16, 12, 23, 0, 16, 12, 22], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 12, 22], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 22]] | 1 | 386 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.