Submission #66081120


Source Code Expand

#include <algorithm>
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;

int main() {
    double a, b;
    cin >> a >> b;
    if (a / b - (int)(a / b) < 0.5) {
        cout << (int)(a / b);
    } else {
        cout << (int)(a / b) + 1;
    }
    return 0;
}

Submission Info

Submission Time
Task A - Approximation
User FlowerAccepted
Language C++ 17 (gcc 12.2)
Score 150
Code Size 302 Byte
Status AC
Exec Time 1 ms
Memory 3684 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 150 / 150
Status
AC × 3
AC × 13
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_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt, 02_random_10.txt, 02_random_11.txt, 02_random_12.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3572 KiB
00_sample_01.txt AC 1 ms 3572 KiB
00_sample_02.txt AC 1 ms 3436 KiB
01_handmade_03.txt AC 1 ms 3684 KiB
01_handmade_04.txt AC 1 ms 3636 KiB
01_handmade_05.txt AC 1 ms 3600 KiB
01_handmade_06.txt AC 1 ms 3632 KiB
02_random_07.txt AC 1 ms 3544 KiB
02_random_08.txt AC 1 ms 3680 KiB
02_random_09.txt AC 1 ms 3600 KiB
02_random_10.txt AC 1 ms 3680 KiB
02_random_11.txt AC 1 ms 3636 KiB
02_random_12.txt AC 1 ms 3576 KiB