Submission #70756643


Source Code Expand

#include <bits/stdc++.h>
//#include <atcoder/all>
using namespace std;
//using namespace atcoder;
//using mint = modint1000000007;
//const int mod = 1000000007;
//using mint = modint998244353;
//const int mod = 998244353;
//const int INF = 1e9;
//const long long LINF = 1e18;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i,l,r)for(int i=(l);i<(r);++i)
#define rrep(i, n) for (int i = (n) - 1; i >= 0; --i)
#define rrep2(i,l,r)for(int i=(r) - 1;i>=(l);--i)
#define all(x) (x).begin(),(x).end()
#define allR(x) (x).rbegin(),(x).rend()
#define P pair<int,int>
template<typename A, typename B> inline bool chmax(A & a, const B & b) { if (a < b) { a = b; return true; } return false; }
template<typename A, typename B> inline bool chmin(A & a, const B & b) { if (a > b) { a = b; return true; } return false; }

int main() {
	std::ios::sync_with_stdio(false);
	std::cin.tie(nullptr);
	int h, b; cin >> h >> b;
	int ans = max(0, h - b);
	cout << ans << endl;
	return 0;
}

Submission Info

Submission Time
Task A - Robot Balance
User kwm_t
Language C++23 (GCC 15.2.0)
Score 100
Code Size 1009 Byte
Status AC
Exec Time 14 ms
Memory 3564 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 14 ms 3428 KiB
00_sample_01.txt AC 1 ms 3540 KiB
00_sample_02.txt AC 1 ms 3480 KiB
01_random_03.txt AC 1 ms 3476 KiB
01_random_04.txt AC 1 ms 3564 KiB
01_random_05.txt AC 1 ms 3496 KiB
01_random_06.txt AC 1 ms 3540 KiB
01_random_07.txt AC 1 ms 3476 KiB
01_random_08.txt AC 1 ms 3480 KiB
01_random_09.txt AC 1 ms 3540 KiB
01_random_10.txt AC 1 ms 3508 KiB
01_random_11.txt AC 1 ms 3412 KiB