提出 #70756643


ソースコード 拡げる

#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;
}

提出情報

提出日時
問題 A - Robot Balance
ユーザ kwm_t
言語 C++23 (GCC 15.2.0)
得点 100
コード長 1009 Byte
結果 AC
実行時間 14 ms
メモリ 3564 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 12
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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