Submission #70758537


Source Code Expand

#include<stdio.h>
#include<iostream>
#include<vector>
#include<algorithm>
#include <stdlib.h>
#include<string>
#include<math.h>
#include<sstream>
#include<set>
#include<math.h>
#include <algorithm>
#include<map>
#include <numeric>
#include <sstream>
#include <iomanip>
#include<tuple>
#include <bitset>
#include <queue>
#include <iomanip>
#include <stack>
#include<time.h>
#include <unordered_set>
#include <random>
using namespace::std;
#define RANDMAX  100000
#define ll long long 
#define lint long long int
#define ldouble long double
#define ALL(a)  (a).begin(),(a).end()
using ve = vector<lint>;

vector<vector<int>> map2;
//
using Gra = vector<vector<lint>>;
using sve = vector<string>;
//  


//cout << std::fixed << std::setprecision(15)<< ans;//小数点
//

// 
//<stack>//上から
// box.push()
// box.pop()
// box.top()
// 
// <queue>下から
// box.push()
// box.front()
// box.pop()
// 
// <set>
// ite=g2.lower_bound(r) set二部探索
// distance(ls.begin(), ite);探索した後の引数
// advance() は極力使わないこと!! ***************************************
// g2.count() set()内の個数
// lower_bound(a.begin(),a.end(),a[i])
// box.size()
// 
// <vector>
// vector<int>
// lower_bound(a.begin(),a.end(),a[i])
// vector<vector<lint>> v(2, vector<lint>(3)) -> v.at(1).at(2);
// next_permutation(aaa.begin(), aaa.end()) ベクターの組み合わせ
//
//<2分探索 ~手動実装偏~>
// int binary_search(int key) {
//    int left = 0, right = (int)a.size() - 1; // 配列 a の左端と右端
//    while (right >= left) {
//        int mid = left + (right - left) / 2; // 区間の真ん中
//        if (a[mid] == key) return mid;
//        else if (a[mid] > key) right = mid - 1;
//        else if (a[mid] < key) left = mid + 1;
//    }
//    return -1;
// }
// 
// <bit全探索>
// bitset<60> bs(n);
//
//鶏をswapするときは箱の番号を変える






/*	par=time_check(nh, nm);
    nh = par.first; nm = par.second;*/
pair<lint, lint> time_check(int h, int m) {
    while (m >= 60) {
        h += 1;
        m -= 60;
    }
    while (m < 0) {
        h -= 1;
        m += 60;
    }
    return make_pair(h, m);
}


std::random_device seed_gen;
uint32_t get_rand() {
    // 乱数生成器(引数にシードを指定可能)
    static std::mt19937 mt32(seed_gen());

    // [0, (2^32)-1] の一様分布整数を生成
    return mt32();
}

class ansd {
public:
    int p;
    int x;
    int y;
};

class zahyo {
public:
    int x;
    int y;
};


int main() {
    int h, b;
    cin >> h >> b;
    if (h > b) {
        cout << h - b;
    }
    else {
        cout << 0;
    }
}

Submission Info

Submission Time
Task A - Robot Balance
User tbbt95
Language C++23 (GCC 15.2.0)
Score 100
Code Size 2781 Byte
Status AC
Exec Time 2 ms
Memory 3596 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 2 ms 3424 KiB
00_sample_01.txt AC 1 ms 3540 KiB
00_sample_02.txt AC 1 ms 3548 KiB
01_random_03.txt AC 1 ms 3456 KiB
01_random_04.txt AC 1 ms 3596 KiB
01_random_05.txt AC 1 ms 3596 KiB
01_random_06.txt AC 1 ms 3584 KiB
01_random_07.txt AC 1 ms 3448 KiB
01_random_08.txt AC 1 ms 3480 KiB
01_random_09.txt AC 1 ms 3596 KiB
01_random_10.txt AC 1 ms 3552 KiB
01_random_11.txt AC 1 ms 3432 KiB