Submission #71334900


Source Code Expand

#include <iostream>
#include <set>
#include <vector>

using namespace std;

int main() {
    int n;
    cin >> n;
    vector<pair<int, int>> rabbits(n);
    for (int i = 0; i < n; ++i) {
        cin >> rabbits[i].first >> rabbits[i].second;
    }
    set<int> positions;
    for (const auto& rabbit : rabbits) {
        positions.insert(rabbit.first + rabbit.second);
        positions.insert(rabbit.first - rabbit.second);
    }
    cout << positions.size() << endl;
    return 0;
}

Submission Info

Submission Time
Task E - Distribute Bunnies
User a_legend_cat
Language C++23 (GCC 15.2.0)
Score 0
Code Size 505 Byte
Status WA
Exec Time 208 ms
Memory 23556 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 500
Status
AC × 1
WA × 2
AC × 8
WA × 34
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_00.txt, 01_random_01.txt, 01_random_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, 02_small_cc_00.txt, 02_small_cc_01.txt, 02_small_cc_02.txt, 02_small_cc_03.txt, 02_small_cc_04.txt, 02_small_cc_05.txt, 02_small_cc_06.txt, 02_small_cc_07.txt, 02_small_cc_08.txt, 02_small_cc_09.txt, 02_small_cc_10.txt, 02_small_cc_11.txt, 02_small_cc_12.txt, 02_small_cc_13.txt, 02_small_cc_14.txt, 02_small_cc_15.txt, 02_small_cc_16.txt, 02_small_cc_17.txt, 02_small_cc_18.txt, 02_small_cc_19.txt, 03_path_00.txt, 03_path_01.txt, 04_cycle_00.txt, 04_cycle_01.txt, 05_namori_00.txt, 05_namori_01.txt, 05_namori_02.txt, 05_namori_03.txt, 05_namori_04.txt
Case Name Status Exec Time Memory
00_sample_00.txt WA 1 ms 3492 KiB
00_sample_01.txt AC 1 ms 3544 KiB
00_sample_02.txt WA 1 ms 3576 KiB
01_random_00.txt WA 151 ms 18124 KiB
01_random_01.txt WA 142 ms 14792 KiB
01_random_02.txt WA 163 ms 19568 KiB
01_random_03.txt WA 208 ms 23368 KiB
01_random_04.txt WA 146 ms 17848 KiB
01_random_05.txt WA 208 ms 23112 KiB
01_random_06.txt WA 107 ms 14160 KiB
01_random_07.txt WA 200 ms 21692 KiB
01_random_08.txt WA 112 ms 14652 KiB
01_random_09.txt WA 125 ms 12420 KiB
02_small_cc_00.txt WA 141 ms 23556 KiB
02_small_cc_01.txt WA 113 ms 22864 KiB
02_small_cc_02.txt WA 115 ms 22092 KiB
02_small_cc_03.txt WA 125 ms 21760 KiB
02_small_cc_04.txt WA 117 ms 21072 KiB
02_small_cc_05.txt WA 117 ms 20688 KiB
02_small_cc_06.txt WA 118 ms 20176 KiB
02_small_cc_07.txt WA 116 ms 19656 KiB
02_small_cc_08.txt WA 116 ms 19288 KiB
02_small_cc_09.txt WA 116 ms 18904 KiB
02_small_cc_10.txt WA 115 ms 18488 KiB
02_small_cc_11.txt WA 115 ms 18052 KiB
02_small_cc_12.txt WA 114 ms 17736 KiB
02_small_cc_13.txt WA 114 ms 17464 KiB
02_small_cc_14.txt WA 113 ms 16972 KiB
02_small_cc_15.txt WA 113 ms 16624 KiB
02_small_cc_16.txt WA 113 ms 16572 KiB
02_small_cc_17.txt WA 112 ms 16188 KiB
02_small_cc_18.txt WA 113 ms 15952 KiB
02_small_cc_19.txt WA 111 ms 15672 KiB
03_path_00.txt WA 132 ms 14288 KiB
03_path_01.txt WA 153 ms 14288 KiB
04_cycle_00.txt AC 132 ms 14192 KiB
04_cycle_01.txt AC 156 ms 14268 KiB
05_namori_00.txt AC 170 ms 14264 KiB
05_namori_01.txt AC 172 ms 14288 KiB
05_namori_02.txt AC 171 ms 14288 KiB
05_namori_03.txt AC 161 ms 14288 KiB
05_namori_04.txt AC 168 ms 14268 KiB