Submission #13929073


Source Code Expand

Copy
#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60;
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 = b; return 1; } return 0; }
//---------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------------------------------
            ∧_∧
      ∧_∧  (´<_` )  Welcome to My Coding Space!
     ( ´_ゝ`) /  ⌒i     @hamayanhamayan0
    /   \     | |
    /   / ̄ ̄ ̄ ̄/  |
  __(__ニつ/     _/ .| .|____
     \/____/ (u ⊃
---------------------------------------------------------------------------------------------------*/














int H1, M1, H2, M2, K;
//---------------------------------------------------------------------------------------------------
void _main() {
	cin >> H1 >> M1 >> H2 >> M2 >> K;

	int st = H1 * 60 + M1;
	int gl = H2 * 60 + M2;

	int len = gl - st;
	int ans = len - K;
	cout << ans << endl;
}





Submission Info

Submission Time
Task A - Study Scheduling
User hamayanhamayan
Language C++ (GCC 9.2.1)
Score 100
Code Size 1588 Byte
Status AC
Exec Time 2 ms
Memory 3684 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 13
Set Name Test Cases
Sample s1.txt, s2.txt
All 0.txt, 1.txt, 10.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
0.txt AC 2 ms 3568 KB
1.txt AC 2 ms 3528 KB
10.txt AC 2 ms 3536 KB
2.txt AC 2 ms 3524 KB
3.txt AC 2 ms 3472 KB
4.txt AC 2 ms 3524 KB
5.txt AC 2 ms 3604 KB
6.txt AC 2 ms 3580 KB
7.txt AC 2 ms 3684 KB
8.txt AC 2 ms 3608 KB
9.txt AC 2 ms 3660 KB
s1.txt AC 2 ms 3476 KB
s2.txt AC 2 ms 3476 KB