Submission #13733588
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long ll;
typedef pair<double, double> pdd;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<int, int> pii;
typedef vector<pii> vii;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
//const int mod = ;
int main() {
std::ios::sync_with_stdio(false); std::cin.tie(0);
int h1, m1, h2, m2, k;
cin >> h1 >> m1 >> h2 >> m2 >> k;
cout << max(0, 60 * (h2 - h1) + m2 - m1 - k) << endl;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Study Scheduling |
| User | ariacas |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 593 Byte |
| Status | AC |
| Exec Time | 2 ms |
| Memory | 3648 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| 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 | 3584 KiB |
| 1.txt | AC | 2 ms | 3484 KiB |
| 10.txt | AC | 2 ms | 3584 KiB |
| 2.txt | AC | 2 ms | 3532 KiB |
| 3.txt | AC | 2 ms | 3580 KiB |
| 4.txt | AC | 2 ms | 3648 KiB |
| 5.txt | AC | 2 ms | 3536 KiB |
| 6.txt | AC | 2 ms | 3584 KiB |
| 7.txt | AC | 2 ms | 3600 KiB |
| 8.txt | AC | 2 ms | 3588 KiB |
| 9.txt | AC | 2 ms | 3600 KiB |
| s1.txt | AC | 2 ms | 3584 KiB |
| s2.txt | AC | 2 ms | 3584 KiB |