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 |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
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) {
m = 60 - m;
h--;
}
int result = h * 60 + m;
cout << result - k << ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
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) {
m = 60 + m;
h--;
}
int result = h * 60 + m;
cout << result - k << ... | [["-", 64, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72]] | 1 | 95 |
guh, gum, gbh, bgm, st = map(int, input().split())
if bgm < gum:
gbh -= 1
bgm += 60
tmp = (gbh-guh)*60+(gbm-gum)
ans = tmp-st
print(ans) | guh, gum, gbh, gbm, st = map(int, input().split())
if gbm < gum:
gbh -= 1
gbm += 60
tmp = (gbh-guh)*60+(gbm-gum)
ans = tmp-st
print(ans) | [["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22]] | 5 | 57 |
a=input().split(' ')
a[0]=int(a[0])
a[1]=int(a[1])
a[2]=int(a[2])
a[3]=int(a[3])
a[4]=int(a[4])
b=(a[0]*60)+a[1]
c=(a[2]*60)+a[3]
print(c-b+a[4])
| a=input().split(' ')
a[0]=int(a[0])
a[1]=int(a[1])
a[2]=int(a[2])
a[3]=int(a[3])
a[4]=int(a[4])
b=(a[0]*60)+a[1]
c=(a[2]*60)+a[3]
print((c-b)-a[4]) | [["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 25], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33]] | 5 | 113 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr int mo = 1e9 + 7;
constexpr int inf = 1 << 30;
constexpr ll infl = 1ll << 60;
constexpr ll mo2 = 998244353;
const double PAI = acos(-1);
constexpr long double eps = 1e-9;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
i... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr int mo = 1e9 + 7;
constexpr int inf = 1 << 30;
constexpr ll infl = 1ll << 60;
constexpr ll mo2 = 998244353;
const double PAI = acos(-1);
constexpr long double eps = 1e-9;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
i... | [["-", 64, 9, 0, 1, 0, 11, 12, 91, 17, 33], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72]] | 1 | 164 |
import java.util.Scanner;
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();
System.out.println(H2 * 60 - H1 * 60 + M1 - M2 - K);
}
... | import java.util.Scanner;
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();
System.out.println(H2 * 60 - H1 * 60 + M2 - M1 - K);
}
... | [["-", 3, 4, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 492, 3, 4, 0, 16, 31, 16, 17, 33], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 17, 33], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 12, 22]] | 3 | 100 |
// package atcoder;
import java.util.*;
// import java.math.BigDecimal;
public class Main {
static boolean[] targetNumbers;
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();
... | // package atcoder;
import java.util.*;
// import java.math.BigDecimal;
public class Main {
static boolean[] targetNumbers;
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();
... | [["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33]] | 3 | 164 |
#include <iostream>
using namespace std;
int h, m, h2, m2, k, minutes;
int main() {
cin >> h >> m >> h2 >> m2 >> k;
if (m2 < m) {
m += 60;
--h2;
}
m2 -= m;
if (h2 < h)
h2 += 24;
h2 -= h;
minutes = h2 * 60 + m2;
cout << minutes - k;
return 0;
} | #include <iostream>
using namespace std;
int h, m, h2, m2, k, minutes;
int main() {
cin >> h >> m >> h2 >> m2 >> k;
if (m2 < m) {
m2 += 60;
--h2;
}
m2 -= m;
if (h2 < h)
h2 += 24;
h2 -= h;
minutes = h2 * 60 + m2;
cout << minutes - k;
return 0;
} | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22]] | 1 | 87 |
h1, m1, h2, m2, k = map(int, input().split())
h = h2 - h1
m = m2 - m1
if m < 0:
h -= 1
m = 60 - m2 + m1
ans = 60*h + m - k
if ans < 0:
ans = 0
print(ans) | h1, m1, h2, m2, k = map(int, input().split())
h = h2 - h1
m = m2 - m1
if m < 0:
h -= 1
m = 60 - m1 + m2
ans = 60*h + m - k
if ans < 0:
ans = 0
print(ans) | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 68 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int d = (m2 - m1) * 60 + m2 - m1;
cout << d - k << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int d = (h2 - h1) * 60 + m2 - m1;
cout << d - k << endl;
}
| [["-", 31, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 31, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 22]] | 1 | 58 |
#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
typedef long long int ll;
void solved() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int len = abs(h2 - h1) * 60 + abs(m2 - m1);
if (len > k) {
cout << len - k << endl;
} else {
cout << "0" << endl;
}
}
int main(... | #include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
typedef long long int ll;
void solved() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int len = (h2 - h1) * 60 + (m2 - m1);
if (len > k) {
cout << len - k << endl;
} else {
cout << "0" << endl;
}
}
int main() {
... | [["-", 49, 50, 51, 16, 31, 16, 31, 2, 63, 22], ["-", 0, 43, 49, 50, 51, 16, 12, 2, 63, 22]] | 1 | 108 |
#include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int a1, b1, a2, b2, k;
scanf("%d%d%d%d%d", &a1, &b1, &a2, &b2, &k);
if (a2 < a1 || a2 == a1 && b2 < b1)
a2 += 24;
int t = a2 * 60 + b2 - a1 * 60 - b1;
if (t <= k)
printf("0\n");
else
printf("%d\b", t - k);
} | #include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int a1, b1, a2, b2, k;
scanf("%d%d%d%d%d", &a1, &b1, &a2, &b2, &k);
if (a2 < a1 || a2 == a1 && b2 < b1)
a2 += 24;
int t = a2 * 60 + b2 - a1 * 60 - b1;
if (t <= k)
printf("0\n");
else
printf("%d\n", t - k);
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 107 |
import sys
input = sys.stdin.readline
a,b,c,d,e = map(int,input().split())
minites = c*60+d - a*60 + b
if minites < 0:
print(60*24 +minites -e)
else:
print(minites -e) | import sys
input = sys.stdin.readline
a,b,c,d,e = map(int,input().split())
minites = c*60+d - (a*60 + b)
if minites < 0:
print(60*24 +minites -e)
else:
print(minites -e) | [["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 67 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <climits>
#define DEBUG if (false)
using namespace std;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
int Mstart = H1 * 60 + M1;
int Mend = H2 * 60 + M2;
cout << Mend - Mend - K << endl;
retu... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <climits>
#define DEBUG if (false)
using namespace std;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
int Mstart = H1 * 60 + M1;
int Mend = H2 * 60 + M2;
cout << Mend - Mstart - K << endl;
re... | [["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 77 |
#include <algorithm>
#include <climits>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define int long long
#define rep(i, n... | #include <algorithm>
#include <climits>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define int long long
#define rep(i, n... | [["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 107]] | 1 | 376 |
h1, m1, h2, m2, k = [int(arg) for arg in input().split()]
print((h2-h1)*60 - (m2-m1) - k)
| h1, m1, h2, m2, k = [int(arg) for arg in input().split()]
print((h2-h1)*60 + (m2-m1) - k)
| [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72]] | 5 | 44 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long int;
int main() {
int ha, ma, hb, mb, k;
cin >> ha >> ma >> hb >> mb >> k;
int h;
int m;
h = hb - ha;
m = mb - ma;
if (m < 0) {
h -= 1;
m = 60 - m;
}
int hun;
hun = h * 60;
i... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long int;
int main() {
int ha, ma, hb, mb, k;
cin >> ha >> ma >> hb >> mb >> k;
int h;
int m;
h = hb - ha;
m = mb - ma;
if (m < 0) {
h -= 1;
m = 60 + m;
}
int hun;
hun = h * 60;
i... | [["-", 64, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72]] | 1 | 130 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (n); ++i)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a =... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (n); ++i)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a =... | [["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 235 |
// nomura2020_a
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#inc... | // nomura2020_a
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#inc... | [["-", 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 | 328 |
#include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <stdio.h>
#include <string>
#include <vector>
#define big ((long long)(1e9) + 7)
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define DBG(x) cerr << #x << ": " ... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <stdio.h>
#include <string>
#include <vector>
#define big ((long long)(1e9) + 7)
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define DBG(x) cerr << #x << ": " ... | [["-", 64, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72]] | 1 | 153 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
#define all(x) (x).begin(), (x).end()
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> bool ... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
#define all(x) (x).begin(), (x).end()
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> bool ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 33], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 110], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 170 |
h1,m1,h2,m2,k=map(int,input().split())
if(h1==h2):
print(m2-m1-k)
elif(m1<m2):
print((h2-h1+1)*60+(60-m1)+m2-k)
else:
print((h2-h1)*60+(m2-m1)-k) | h1,m1,h2,m2,k=map(int,input().split())
if(h1==h2):
print(m2-m1-k)
elif(m2<m1):
print((h2-h1-1)*60+(60-m1)+m2-k)
else:
print((h2-h1)*60+(m2-m1)-k) | [["-", 0, 57, 75, 665, 15, 23, 0, 666, 0, 22], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 0, 22], ["-", 31, 657, 31, 657, 31, 23, 0, 657, 17, 72], ["+", 31, 657, 31, 657, 31, 23, 0, 657, 17, 33]] | 5 | 86 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int h1 = scan.nextInt();
int m1 = scan.nextInt();
int h2 = scan.nextInt();
int m2 = scan.nextInt();
int k = scan.nextInt();
int time = 0;
if (m1 <= m2) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int h1 = scan.nextInt();
int m1 = scan.nextInt();
int h2 = scan.nextInt();
int m2 = scan.nextInt();
int k = scan.nextInt();
int time = 0;
if (m1 <= m2) {
... | [["-", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 22]] | 3 | 147 |
H,M,h,m,K = map(int,input().split())
A = H*60 + M
B = h*60 + M
X = B - A - K
print(X) | H,M,h,m,K = map(int,input().split())
A = H*60 + M
B = h*60 + m
X = B - A - K
print(X)
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 47 |
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <regex>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long int;
using dd = long double;
const ll MOD = 1... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <regex>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long int;
using dd = long double;
const ll MOD = 1... | [["+", 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 | 278 |
#include <stdio.h>
int main() {
int fh, fm, lh, lm, k;
scanf("%d %d %d %d %d", &fh, &fm, &lh, &lm, &k);
int minute;
minute = (lh * 60 + lm) - (fh * 60 + fm) - k;
printf("&d", minute);
return 0;
}
| #include <stdio.h>
int main() {
int fh, fm, lh, lm, k;
scanf("%d %d %d %d %d", &fh, &fm, &lh, &lm, &k);
int minute;
minute = (lh * 60 + lm) - (fh * 60 + fm) - k;
printf("%d", minute);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 76 |
#include <bits/stdc++.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#include <ext/pb... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#include <ext/pb... | [["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 155 |
H1,M1,H2,M2,K = map(int,input().split())
if (H1, M1) > (H2, M2):
H2 += 24
print(max(0, 60*H2 + M2 - (60*H1 + M2) - K)) | H1,M1,H2,M2,K = map(int,input().split())
if (H1, M1) > (H2, M2):
H2 += 24
print(max(0, 60*H2 + M2 - (60*H1 + M1) - K)) | [["-", 0, 657, 31, 657, 12, 23, 0, 657, 12, 22], ["+", 0, 657, 31, 657, 12, 23, 0, 657, 12, 22]] | 5 | 61 |
h1, m1, h2, m2, k = map(int, input().split())
if h1 <= h2:
time = h2 * 60 + m2 - h1 * 60 + m1
else:
time = (h2+24) * 60 + m2 - h1 * 60 + m1
if k >= time:
print(0)
else:
print(time - k)
| h1, m1, h2, m2, k = map(int, input().split())
if h1 <= h2:
time = h2 * 60 + m2 - h1 * 60 - m1
else:
time = (h2+24) * 60 + m2 - h1 * 60 - m1
if k >= time:
print(0)
else:
print(time - k)
| [["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33]] | 5 | 76 |
H1, M1, H2, M2, K = map(int, input().rstrip().split())
minutes = M2 - M1
hours = 0
if minutes < 0:
minutes += 60
hours += 1
hours = H2 - H1
minutes += hours * 60
answer = minutes - K
if answer < 0:
answer = 0
print(answer)
| H1, M1, H2, M2, K = map(int, input().rstrip().split())
minutes = M2 - M1
hours = 0
if minutes < 0:
minutes += 60
hours -= 1
hours += H2 - H1
minutes += hours * 60
answer = minutes - K
if answer < 0:
answer = 0
print(answer)
| [["-", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 110], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 107]] | 5 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int H, M, h, m, K;
cin >> H >> M >> h >> m >> K;
int A = (h - H) * 60;
A = A + (m - M);
if (A == K) {
cout << 0 << endl;
} else if (A > K) {
cout << (A - 1) / K * K << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, M, h, m, K;
cin >> H >> M >> h >> m >> K;
int A = (h - H) * 60;
A = A + (m - M);
if (A == K) {
cout << 0 << endl;
} else if (A > K) {
cout << A - K << endl;
}
}
| [["-", 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 | 93 |
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main() {
ll h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 - h1) * 60 + m1 - m2 - k << endl;
return 0;
}
| #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main() {
ll h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 - h1) * 60 + m2 - m1 - k << endl;
return 0;
} | [["-", 31, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 63 |
h1,m1,h2,m2,K = map(int,input().split())
ans = 60*h2+m2 - 60*h1+m1 -K
print(ans) | h1,m1,h2,m2,K = map(int,input().split())
ans = (60*h2+m2) - (60*h1+m1) -K
print(ans) | [["+", 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 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M1 >> H2 >> M2 >> K;
int Ans;
Ans = (H2 - H1) * 60 + M1 - M2 - K;
cout << Ans << 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 Ans;
Ans = (H2 - H1) * 60 + M2 - M1 - K;
cout << Ans << endl;
return 0;
} | [["-", 0, 11, 12, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22]] | 1 | 63 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long H1, M1, H2, M2, K, Ans;
cin >> H1 >> M1 >> H2 >> M2 >> K;
Ans = H2 * 60 + M2 - K - H1 * 60 - M2;
cout << Ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long H1, M1, H2, M2, K, Ans;
cin >> H1 >> M1 >> H2 >> M2 >> K;
Ans = H2 * 60 + M2 - K - H1 * 60 - M1;
cout << Ans << endl;
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 63 |
a,b,c,d,e = map(int,input().split())
f = c - a
g = d - b
if g < 0:
g = 60 - g
f -=1
total = 60 * f + g
if total - e <= 0:
print('0')
else:
total -= e
print(total) | a,b,c,d,e = map(int,input().split())
f = c - a
g = d - b
if g < 0:
g = 60 + g
f -=1
total = 60 * f + g
if total - e <= 0:
print('0')
else:
total -= e
print(total) | [["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 72]] | 5 | 74 |
import os
import sys
from io import BytesIO, IOBase
def main():
h1,m1,h2,m2,k=map(int,input().split())
ht=h2-h1
ht*=60
if(m2>=m1):
ht+=m2-m1
else:
ht-=m2-m1
print(ht-k)
# fast-io region
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
... | import os
import sys
from io import BytesIO, IOBase
def main():
h1,m1,h2,m2,k=map(int,input().split())
ht=h2-h1
ht*=60
if(m2>=m1):
ht+=m2-m1
else:
ht+=(m2-m1)
print(ht-k)
# fast-io region
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
... | [["-", 75, 76, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 8, 196, 0, 1, 0, 677, 12, 23, 0, 24], ["+", 8, 196, 0, 1, 0, 677, 12, 23, 0, 25]] | 5 | 631 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int cnt = 60 * (h2 - h1);
if (m2 >= m1)
cnt += m2 - m1;
else
cnt += 60 - m1 + m2;
cout << cnt - k << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int cnt = 60 * (h2 - h1);
if (m2 >= m1)
cnt += m2 - m1;
else
cnt += -m1 + m2;
cout << cnt - k << endl;
} | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13]] | 1 | 75 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
typedef long long ll;
const ll MOD = 1e9 + 7;
const long long INF = 1LL << 60;
const double PI = 3.14159265358979323846;
const int NMAX = 100005;
using namespace std;
int main()... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
typedef long long ll;
const ll MOD = 1e9 + 7;
const long long INF = 1LL << 60;
const double PI = 3.14159265358979323846;
const int NMAX = 100005;
using namespace std;
int main()... | [["-", 0, 57, 64, 1, 0, 11, 12, 16, 31, 13], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33]] | 1 | 128 |
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(x) x.begin(), x.end()
#define pii pair<int, int>
#define vpii vector<pair<int, int>>
#define mii map<int, int>
#define MOD 1000000007
#define fr(i, k, n) for (int i = k; i < n; i++)
#define fl(i, k, n) for ... | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(x) x.begin(), x.end()
#define pii pair<int, int>
#define vpii vector<pair<int, int>>
#define mii map<int, int>
#define MOD 1000000007
#define fr(i, k, n) for (int i = k; i < n; i++)
#define fl(i, k, n) for ... | [["+", 0, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 181 |
h1,m1,h2,m2,k=map(int,input().split())
h_d=h2-h
m_d=m2-m1
if m_d<0:
h_d-=1
m_d=60+m2-m1
sum=60*h_d+m_d
sum-=k
if sum<0:
print(0)
else:
print(sum) | h1,m1,h2,m2,k=map(int,input().split())
h_d=h2-h1
m_d=m2-m1
if m_d<0:
h_d-=1
m_d=60+m2-m1
sum=60*h_d+m_d
sum-=k
if sum<0:
print(0)
else:
print(sum) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 72 |
h1, m1, h2, m2, k = map(int, input().split())
print(min((h2-h1)*60+m2-m1-k, 0))
| h1, m1, h2, m2, k = map(int, input().split())
print(max((h2-h1)*60+m2-m1-k, 0))
| [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]] | 5 | 43 |
h1, m1, h2, m2, k =map(int, input().split())
ans = (h2-h1)*60+(m1-m2) -k
print(ans) |
h1, m1, h2, m2, k =map(int, input().split())
ans = (h2-h1)*60+(m2-m1)-k
print(ans) | [["-", 12, 657, 31, 657, 12, 23, 0, 657, 31, 22], ["-", 12, 657, 31, 657, 12, 23, 0, 657, 17, 33], ["+", 12, 657, 31, 657, 12, 23, 0, 657, 17, 33], ["+", 12, 657, 31, 657, 12, 23, 0, 657, 12, 22]] | 5 | 43 |
import sys
import math
import itertools
h1, m1, h2, m2, k = map(int, input().split())
print(max((h2-h1)*60 + (m2-m1)-k),0) | import sys
import math
import itertools
h1, m1, h2, m2, k = map(int, input().split())
print(max((h2-h1)*60 + (m2-m1)-k,0)) | [["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 51 |
h, m, h2, m2, k = map(int, input().split())
print(12*h2+m2-(12*h+m+k))
| h, m, h2, m2, k = map(int, input().split())
print(60*h2+m2-(60*h+m+k))
| [["-", 3, 4, 0, 657, 31, 657, 31, 657, 31, 612], ["+", 3, 4, 0, 657, 31, 657, 31, 657, 31, 612], ["-", 12, 23, 0, 657, 31, 657, 31, 657, 31, 612], ["+", 12, 23, 0, 657, 31, 657, 31, 657, 31, 612]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << h2 * 60 + m2 - h1 * 60 + m1 - k << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 * 60 + m2) - (h1 * 60 + m1) - k << endl;
}
| [["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["+", 31, 16, 12, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 16, 12, 23, 0, 25]] | 1 | 53 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = k; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
#define pb emplace_back
#define eb emplace_back
#define lb(v, k) (lower_bound(all(v), k) - v.begin())
#defi... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = k; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
#define pb emplace_back
#define eb emplace_back
#define lb(v, k) (lower_bound(all(v), k) - v.begin())
#defi... | [["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 17, 33]] | 1 | 923 |
h1, m1, h2, m2, k = map(int, input().split())
print(max(0, h2*60-h1*60+m1-m2-k)) | h1, m1, h2, m2, k = map(int, input().split())
print(max(0, h2*60-h1*60+m2-m1-k)) | [["-", 3, 4, 0, 657, 31, 657, 31, 657, 12, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22]] | 5 | 43 |
a,b,c,d,e = map(int,input.split())
print((c*60+d)-(a*60+b)-e) | a,b,c,d,e = map(int,input().split())
print((c*60+d)-(a*60+b)-e) | [["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]] | 5 | 40 |
// Dmitry _kun_ Sayutin (2020)
#include <bits/stdc++.h>
using std::cerr;
using std::cin;
using std::cout;
using std::array;
using std::map;
using std::queue;
using std::set;
using std::string;
using std::vector;
using std::make_pair;
using std::pair;
using std::get;
using std::make_tuple;
using std::tuple;
using ... | // Dmitry _kun_ Sayutin (2020)
#include <bits/stdc++.h>
using std::cerr;
using std::cin;
using std::cout;
using std::array;
using std::map;
using std::queue;
using std::set;
using std::string;
using std::vector;
using std::make_pair;
using std::pair;
using std::get;
using std::make_tuple;
using std::tuple;
using ... | [["-", 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 | 316 |
#include <bits/stdc++.h>
using namespace std;
// macro
#define rep(i, n) for (i = 0; i < n; i++)
#define ll long long
#define all(v) v.begin(), v.end()
// code starts
int main() {
int h1, m1, h2, m2;
cin >> h1 >> m1 >> h2 >> m2;
int t1, t2;
t1 = h1 * 60 + m1;
t2 = h2 * 60 + m2;
int k;
cin >> k;
cout <... | #include <bits/stdc++.h>
using namespace std;
// macro
#define rep(i, n) for (i = 0; i < n; i++)
#define ll long long
#define all(v) v.begin(), v.end()
// code starts
int main() {
int h1, m1, h2, m2;
cin >> h1 >> m1 >> h2 >> m2;
int t1, t2;
t1 = h1 * 60 + m1;
t2 = h2 * 60 + m2;
int k;
cin >> k;
cout <... | [["-", 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 | 94 |
#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define PI acos(-1)
int main() {
int h, m, h2, m2, k;
int start, end;
cin >> h >> m >> h2 >> m2 >> k;
start = h * 60 + m;
end = h2 * 60 + m;
cout << end - start - k << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define PI acos(-1)
int main() {
int h, m, h2, m2, k;
int start, end;
cin >> h >> m >> h2 >> m2 >> k;
start = h * 60 + m;
end = h2 * 60 + m2;
cout << end - start - k << endl;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 72 |
#define _USE_MATH_DEFINES
#define _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING
#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
//#include <bits/stdc++.h>
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#incl... | #define _USE_MATH_DEFINES
#define _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING
#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
//#include <bits/stdc++.h>
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#incl... | [["-", 0, 43, 49, 50, 51, 16, 31, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 33]] | 1 | 743 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vint;
typedef vector<vector<ll>> vvint;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define repf(i, f, n) for (ll i = f; i < n; i++)
#define repr(i, n) for (ll i = n - 1; i >= 0; i--)
#define mp make_pair
#define mt make_tuple
#de... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vint;
typedef vector<vector<ll>> vvint;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define repf(i, f, n) for (ll i = f; i < n; i++)
#define repr(i, n) for (ll i = n - 1; i >= 0; i--)
#define mp make_pair
#define mt make_tuple
#de... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33]] | 1 | 250 |
h1, m1, h2, m2, k = map(int, input().split())
ans = (h2*60+m2-h1*60+m1) - k
print(ans)
| h1, m1, h2, m2, k = map(int, input().split())
ans = (h2*60+m2-(h1*60+m1)) - k
print(ans)
| [["+", 12, 657, 31, 23, 0, 657, 12, 23, 0, 24], ["+", 12, 657, 31, 23, 0, 657, 12, 23, 0, 25]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
#define sws \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll long ... | #include <bits/stdc++.h>
using namespace std;
#define sws \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll long ... | [["-", 49, 50, 51, 16, 31, 23, 0, 16, 17, 33], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72]] | 1 | 122 |
import java.util.*;
public 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 t = h2 * 60 + m2 - h1 * 60 + m1;
System.out.pri... | import java.util.*;
public 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 t = h2 * 60 + m2 - (h1 * 60 + m1);
System.out.p... | [["+", 0, 503, 49, 200, 51, 16, 12, 23, 0, 24], ["+", 0, 503, 49, 200, 51, 16, 12, 23, 0, 25]] | 3 | 106 |
import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
static long mod = 1000000007l;
static int max = Integer.MAX_VALUE, min = Integer.MIN_VALUE;
static long maxl = Long.MAX_VALUE, minl = Long.MIN_VALUE;
static BufferedReader br =
new BufferedReader(new InputStreamReader(System.in)... | import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
static long mod = 1000000007l;
static int max = Integer.MAX_VALUE, min = Integer.MIN_VALUE;
static long maxl = Long.MAX_VALUE, minl = Long.MIN_VALUE;
static BufferedReader br =
new BufferedReader(new InputStreamReader(System.in)... | [["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 22]] | 3 | 2,609 |
h1,m1,h2,m2,k=map(int,input().split())
h=h2-h1
m=m2-m1
t=h*60+m
print(min(t-k,0)) | h1,m1,h2,m2,k=map(int,input().split())
h=h2-h1
m=m2-m1
t=h*60+m
print(max(t-k,0)) | [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]] | 5 | 50 |
A, B, C ,D, K = map(int,input().split())
ans = (C-A)* 60 + B - D - K
print(ans) | A, B, C ,D, K = map(int,input().split())
ans = (C-A)* 60 - B + D - K
print(ans) | [["-", 0, 662, 12, 657, 31, 657, 31, 657, 17, 72], ["-", 0, 662, 12, 657, 31, 657, 31, 657, 12, 22], ["+", 0, 662, 12, 657, 31, 657, 31, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 72]] | 5 | 41 |
H, M, h, m, K = map(int, input().slpit())
print( max(0, 60*(h-H) + m - M - K) ) | H, M, h, m, K = map(int, input().split())
print( max(0, 60*(h-H) + m - M - K) )
| [["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22]] | 5 | 43 |
#include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
// namespace mp = boost::multiprecision;
using namespace std;
const double PI = 3.14159265358979323846;
typedef long long ll;
const long double EPS = 1e-9;
#define rep(i, n) for (int i = 0; i < (n); ++i)
//#define rep(i, n) for (ll i = 0; i < (n)... | #include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
// namespace mp = boost::multiprecision;
using namespace std;
const double PI = 3.14159265358979323846;
typedef long long ll;
const long double EPS = 1e-9;
#define rep(i, n) for (int i = 0; i < (n); ++i)
//#define rep(i, n) for (ll i = 0; i < (n)... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 294 |
package main
import "fmt"
func max(x, y int) int {
if x > y {
return x
}
return y
}
func main() {
var h1, m1, h2, m2, k int
fmt.Scan(&h1, &m1, &h2, &m2, &k)
x := h2*60 + m2 - h1*60 + m1
fmt.Println(max(x-k, 0))
}
| package main
import "fmt"
func max(x, y int) int {
if x > y {
return x
}
return y
}
func main() {
var h1, m1, h2, m2, k int
fmt.Scan(&h1, &m1, &h2, &m2, &k)
x := h2*60 + m2 - (h1*60 + m1)
fmt.Println(max(x-k, 0))
}
| [["+", 0, 431, 12, 432, 0, 16, 12, 23, 0, 24], ["+", 0, 431, 12, 432, 0, 16, 12, 23, 0, 25]] | 7 | 100 |
h, m, x, y, k = map(int, input().split())
mi = x*60 + y - h*60+m - k
print(mi) | h, m, x, y, k = map(int, input().split())
mi = x*60 + y - (h*60+m) - k
print(mi) | [["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 24], ["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 25]] | 5 | 41 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<int, int> i_i;
#define reps(i, s, n) for (int i = s; i < n; i++)
#define rep(i, n) reps(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define SZ(x) ((ll)(x).size())
const double PI = acos(-1.0);
const ll INF = 1e18 +... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<int, int> i_i;
#define reps(i, s, n) for (int i = s; i < n; i++)
#define rep(i, n) reps(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define SZ(x) ((ll)(x).size())
const double PI = acos(-1.0);
const ll INF = 1e18 +... | [["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 48], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 16, 12, 16, 31, 16, 12, 16, 17, 48], ["-", 0, 16, 12, 16, 31, 16, 12, 16, 12, 13]] | 1 | 212 |
#list(map(int,input().split()))
a,b,c,d,e=list(map(int,input().split()))
print(max(c*60+d-a*60+b-e,0))
| #list(map(int,input().split()))
a,b,c,d,e=list(map(int,input().split()))
print(c*60+d-a*60-b-e)
| [["-", 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, 21], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 612], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 47 |
#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>;
//マクロ
// forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)... | #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>;
//マクロ
// forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)... | [["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33]] | 1 | 214 |
#include <algorithm>
#include <iostream>
#include <queue>
#include <stack>
#include <stdio.h>
#include <vector>
using ll = long long int;
const int INF = (1 << 30);
const ll INFLL = (1ll << 60);
const ll MOD = (ll)(1e9 + 7);
#define l_ength size
void mul_mod(ll &a, ll b) {
a *= b;
a %= MOD;
}
void add_mod(ll &a... | #include <algorithm>
#include <iostream>
#include <queue>
#include <stack>
#include <stdio.h>
#include <vector>
using ll = long long int;
const int INF = (1 << 30);
const ll INFLL = (1ll << 60);
const ll MOD = (ll)(1e9 + 7);
#define l_ength size
void mul_mod(ll &a, ll b) {
a *= b;
a %= MOD;
}
void add_mod(ll &a... | [["-", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["-", 12, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 220 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
using P = pair<int, int>;
int main(... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
using P = pair<int, int>;
int main(... | [["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]] | 1 | 111 |
H1, M1, H2, M2, K=map(int, input().split())
if H1==H2:
x=M2-M1
ms=x-K
else:
ms=(60-M1)+(H2-H1-1)*60-K
print(max(0, ms)) | H1, M1, H2, M2, K=map(int, input().split())
if H1==H2:
x=M2-M1
ms=x-K
else:
ms=(60-M1)+(H2-H1-1)*60+M2-K
print(max(0, ms)) | [["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 72], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22]] | 5 | 67 |
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
sc := NewScanner()
A := sc.NextIntArray()
D := A[2]*60 + A[3] - A[0]*60 + A[1]
D -= A[4]
fmt.Println(D)
}
type Scanner struct {
r *bufio.Reader
buf []byte
p int
}
func NewScanner() *Scanner {
rdr := bufio.NewReaderSize(os.Stdin, 100... | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
sc := NewScanner()
A := sc.NextIntArray()
D := A[2]*60 + A[3] - (A[0]*60 + A[1])
D -= A[4]
fmt.Println(D)
}
type Scanner struct {
r *bufio.Reader
buf []byte
p int
}
func NewScanner() *Scanner {
rdr := bufio.NewReaderSize(os.Stdin, 1... | [["+", 0, 431, 12, 432, 0, 16, 12, 23, 0, 24], ["+", 0, 431, 12, 432, 0, 16, 12, 23, 0, 25]] | 7 | 887 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(void) {
ll H[2], M[2], K;
cin >> H[0] >> M[0] >> H[1] >> M[1] >> K;
ll l = H[0] * 60 + M[0];
ll r = H[1] * 60 + M[0];
cout << r - l - K << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(void) {
ll H[2], M[2], K;
cin >> H[0] >> M[0] >> H[1] >> M[1] >> K;
ll l = H[0] * 60 + M[0];
ll r = H[1] * 60 + M[1];
cout << r - l - K << endl;
return 0;
}
| [["-", 49, 50, 51, 16, 12, 69, 341, 342, 0, 13], ["+", 49, 50, 51, 16, 12, 69, 341, 342, 0, 13]] | 1 | 96 |
h1, m1, h2, m2, k = map(int, input().split())
start = h1 * 60 + m1
end = h2 * 60 + m1
print(max(end - start - k, 0)) | h1, m1, h2, m2, k = map(int, input().split())
start = h1 * 60 + m1
end = h2 * 60 + m2
print(max(end - start - k, 0)) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 49 |
import java.math.*;
import java.util.*;
class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int hour1 = Integer.parseInt(sc.next());
int minute1 = Integer.parseInt(sc.next());
int hour2 = Integer.parseInt(sc.next());
int minute2 = Integer.p... | import java.math.*;
import java.util.*;
class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int hour1 = Integer.parseInt(sc.next());
int minute1 = Integer.parseInt(sc.next());
int hour2 = Integer.parseInt(sc.next());
int minute2 = Integer.pa... | [["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33]] | 3 | 199 |
H1, M1, H2, M2, K = [int(s) for s in input().split()]
if H2 < H1:
H2 += 24
elif H2 == H1 and M1 > M2:
H2 += 24
print(int(H2 * 60 + M2 - H1 * 60 + M1 - K)) | H1, M1, H2, M2, K = [int(s) for s in input().split()]
if H2 < H1:
H2 += 24
elif H2 == H1 and M1 > M2:
H2 += 24
print(int(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 | 65 |
H_1,M_1,H_2,M_2,K = map(int,input().split())
if H_2-H_1<0:
print((H_2-H_1+24)*60+M_2+M_1-K)
else:
print(H_2*60+M_2-H_1*60+M_1-K)
| H_1,M_1,H_2,M_2,K = map(int,input().split())
if H_2-H_1<0:
print((H_2-H_1+24)*60+M_2-M_1-K)
else:
print(H_2*60+M_2-H_1*60-M_1-K)
| [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int H1, M1, H2, M2, K;
cin >> H1 >> M2 >> H2 >> M2 >> K;
cout << H2 * 60 + M2 - (H1 * 60 + 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 * 60 + M2 - (H1 * 60 + M1) - K << endl;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22]] | 1 | 55 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fast() \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cou... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fast() \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cou... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 75, 76, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 75, 76, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 75, 76, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 75, 76, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 115 |
h1,m1,h2,m2,k = map(int,input().split())
m = m2-m1 + (h2-h1)*60 -1
print(m//k * k)
| h1,m1,h2,m2,k = map(int,input().split())
m = m2-m1 + (h2-h1)*60
print(m-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 | 45 |
H, M, h, m, K = map(int, input().split())
wake = H * 60 + M
sleep = h * 60 + M
spinner = sleep - wake
oops = spinner - K
print(oops) | H, M, h, m, K = map(int, input().split())
wake = H * 60 + M
sleep = h * 60 + m
spinner = sleep - wake
oops = spinner - K
print(oops) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 50 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << 60 * h2 + m2 - 60 * h1 + m1 - k << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << ((60 * h2 + m2) - (60 * h1 + m1)) - k << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int H1, M1, H2, M2, K, tmp, tmp2, tmp3;
cin >> H1 >> M1 >> H2 >> M2 >> K;
if (M2 >= M1) {
tmp = H2 - H1;
tmp2 = M2 - M1;
} else {
tmp = H2 - H1 - 1;
tmp2 = M2 - M1 + 1;
}
tmp3 = tmp * 60 + tmp2;
if (tmp3 >= K) {
cout << tmp3 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int H1, M1, H2, M2, K, tmp, tmp2, tmp3;
cin >> H1 >> M1 >> H2 >> M2 >> K;
if (M2 >= M1) {
tmp = H2 - H1;
tmp2 = M2 - M1;
} else {
tmp = H2 - H1 - 1;
tmp2 = M2 - M1 + 60;
}
tmp3 = tmp * 60 + tmp2;
if (tmp3 >= K) {
cout << tmp3... | [["-", 0, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int a = h2 - h1;
int b = m2 - m1;
cout << (a - b) * 60 - k << 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 a = h2 - h1;
int b = m2 - m1;
cout << a * 60 + b - k << endl;
return 0;
}
| [["-", 31, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["-", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 66 |
#include <iostream>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int ans = (h2 - h1) * 60 - (m2 - m1 + k);
if (ans < 0)
ans += 60 * 24;
cout << ans;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
int ans = (h2 - h1) * 60 + (m2 - m1 - k);
if (ans < 0)
ans += 60 * 24;
cout << ans;
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["-", 49, 50, 51, 16, 12, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 17, 33]] | 1 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int minute, zi1, hun1, zi2, hun2, naga;
cin >> zi1 >> hun1 >> zi2 >> hun2 >> naga;
minute = zi2 * 60 + hun2 - zi1 * 60 + hun1;
cout << minute - naga << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int minute, zi1, hun1, zi2, hun2, naga;
cin >> zi1 >> hun1 >> zi2 >> hun2 >> naga;
minute = zi2 * 60 + hun2 - (zi1 * 60 + hun1);
cout << minute - naga << endl;
}
| [["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]] | 1 | 59 |
H1, M1, H2, M2, K = map(int, input().split())
ans = (H2 * 60 + M2 - H1 * 60 + M1) - K
print(ans) | H1, M1, H2, M2, K = map(int, input().split())
ans = (H2 * 60 + M2) - (H1 * 60 + M1) - K
print(ans) | [["+", 0, 662, 12, 657, 31, 657, 31, 23, 0, 25], ["+", 0, 662, 12, 657, 31, 657, 12, 23, 0, 24]] | 5 | 43 |
H1, M1, H2, M2, K = map(int,input().split())
latest = H2*60+M2-K #[min]
earliest = H1*60
study = latest-earliest
print(study) | H1, M1, H2, M2, K = map(int,input().split())
latest = H2*60+M2-K #[min]
earliest = H1*60+M1
study = latest-earliest
print(study) | [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 46 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 * 60 + m2 - k - h1 * 60 + m1) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int h1, h2, m1, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << (h2 * 60 + m2 - k - h1 * 60 - m1) << endl;
return 0;
} | [["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 33]] | 1 | 72 |
li = list(map(int,input().split()))
h1, m1, h2, m2, k = li
life_time = (h2 - h1)*60 + (m2 - m1)
time = life_time - k # 分
| li = list(map(int,input().split()))
h1, m1, h2, m2, k = li
life_time = (h2 - h1)*60 + (m2 - m1)
time = life_time - k # 分
print(time)
| [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 49 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
Integer H1 = scanner.nextInt();
Integer M1 = scanner.nextInt();
Integer H2 = scanner.nextInt();
Integer M2 = scanner.nextInt();
Integer K = scanne... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
Integer H1 = scanner.nextInt();
Integer M1 = scanner.nextInt();
Integer H2 = scanner.nextInt();
Integer M2 = scanner.nextInt();
Integer K = scanne... | [["+", 0, 57, 64, 196, 0, 1, 0, 27, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 27, 0, 68], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 3 | 146 |
#include <stdio.h>
int main(void) {
int h1, h2, m1, m2, k;
int s, g;
scanf("%d %d %d %d %d", h1, m1, h2, m2, k);
s = (60 * h1) + m1;
g = (60 * h2) + m2;
printf("%d", g - s - k);
return 0;
} | #include <stdio.h>
int main(void) {
int h1, h2, m1, m2, k;
int s, g;
scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k);
s = (60 * h1) + m1;
g = (60 * h2) + m2;
printf("%d", g - s - k);
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 78 |
H1, M1, H2, M2, K = map(int, input().split())
startTime = (H1*60)+M1
endTime = (H2*60)+M2
time = endTime - startTime
posTime = time - k
if (posTime < 0):
print(0)
else:
print(posTime) | H1, M1, H2, M2, K = map(int, input().split())
startTime = (H1*60)+M1
endTime = (H2*60)+M2
time = endTime - startTime
posTime = time - K
if (posTime < 0):
print(0)
else:
print(posTime) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 67 |
H1, M1, H2, M2, K = map(int, input().split())
h1 = H1 * 60
m1 = M1
h2 = H2 * 60
m2 = M2
ans = (h2 - m2) - (h1 + m1) - K if (h2 - m2) > (h1 + m1) else (h2 - m2) - (h1 + m1) - K + 24 * 60
print(ans) | H1, M1, H2, M2, K = map(int, input().split())
h1 = H1 * 60
m1 = M1
h2 = H2 * 60
m2 = M2
ans = (h2 + m2) - (h1 + m1) - K if (h2 + m2) > (h1 + m1) else (h2 + m2) - (h1 + m1) - K + 24 * 60
print(ans) | [["-", 0, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 31, 657, 31, 23, 0, 657, 17, 72], ["-", 12, 41, 0, 666, 0, 23, 0, 657, 17, 33], ["+", 12, 41, 0, 666, 0, 23, 0, 657, 17, 72], ["-", 31, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["+", 31, 657, 31, 657, 31, 23, 0, 657, 17, 72]] | 5 | 87 |
#include <stdio.h>
int main() {
int h1, h2, m1, m2, k;
if (scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k) == 5) {
printf("%i\n", (h2 * 60 + m2 - h1 * 60 + m1) - k);
return 0;
}
}
| #include <stdio.h>
int main() {
int h1, h2, m1, m2, k;
if (scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k) == 5) {
printf("%i\n", h2 * 60 + m2 - (h1 * 60 + m1) - k);
return 0;
}
}
| [["-", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 16, 12, 23, 0, 24]] | 0 | 74 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int64_t i = 0; i < (int64_t)(n); i++)
#define all(v) v.begin(), v.end()
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
if (m1 > m2) {
m1 += 60;
h1--;
}
if (h1 > h2)
h1 += 24;
int time;
time = (h2 - ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int64_t i = 0; i < (int64_t)(n); i++)
#define all(v) v.begin(), v.end()
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
if (m1 > m2) {
m1 += 60;
h1--;
}
if (h1 > h2)
h1 += 24;
int time;
time = (h2 - ... | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 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]] | 1 | 99 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t[4];
for (int i = 0; i < 4; i++)
cin >> t[i];
int k;
cin >> k;
cout << t[1] * 60 + t[2] - t[0] * 60 - t[1] - k << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int t[4];
for (int i = 0; i < 4; i++)
cin >> t[i];
int k;
cin >> k;
cout << t[2] * 60 + t[3] - t[0] * 60 - t[1] - k << endl;
} | [["-", 31, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["-", 31, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 31, 16, 31, 16, 12, 69, 341, 342, 0, 13]] | 1 | 76 |
h1, m1, h2, m2, k = gets.split(" ").map(&:to_i)
if m2 - m1 < 0
puts (h2 - (h1 + 1) * 60) + (60 - (m1 - m2) - k)
else
puts (h2 - h1) * 60 + m2 - m1 - k
end | h1, m1, h2, m2, k = gets.split(" ").map(&:to_i)
if m2 - m1 < 0
puts (h2 - (h1 + 1)) * 60 + (60 - (m1 - m2) - k)
else
puts (h2 - h1) * 60 + m2 - m1 - k
end | [["+", 3, 4, 0, 738, 31, 738, 31, 739, 0, 25], ["-", 0, 652, 3, 4, 0, 738, 31, 739, 0, 25]] | 4 | 70 |
#include <bits/stdc++.h>
#include <iomanip>
using namespace std;
#define ll long long
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << max(((h2 * 60 + m2) - (h1 * 60 + m2) - k), 0);
return 0;
}
| #include <bits/stdc++.h>
#include <iomanip>
using namespace std;
#define ll long long
int main() {
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << max(((h2 * 60 + m2) - (h1 * 60 + m1) - k), 0);
return 0;
}
| [["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22]] | 1 | 70 |
#!/usr/bin/env python3
h1, m1, h2, m2, k = list(map(int, input().split()))
print(h2*60+m2-h1*60+m1-k)
| #!/usr/bin/env python3
h1, m1, h2, m2, k = list(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 | 42 |
h1, m1, h2, m2, k = map(int, input().split())
if m1 > m2:
h = h2 - h1 - 1
m = 60 - m1 - m2
else:
h = h2 - h1
m = m2 - m1
if k > h*60 + m:
print(0)
else:
print(h*60 + m - k)
| h1, m1, h2, m2, k = map(int, input().split())
if m1 > m2:
h = h2 - h1 - 1
m = 60 - m1 + m2
else:
h = h2 - h1
m = m2 - m1
if k > h*60 + m:
print(0)
else:
print(h*60 + m - k)
| [["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 72]] | 5 | 78 |
a, b, c, d, e = map(int, input().split())
# get a string
#s = raw_input()
# output
start = a*60+b
end = c*60+d
result = end - start - 30
print(result) | a, b, c, d, e = map(int, input().split())
# get a string
#s = raw_input()
# output
start = a*60+b
end = c*60+d
result = end - start - e
print(result) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.