Submission #75042119


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define endl "\n"


signed main()
{
    ios::sync_with_stdio(0),cin.tie(0);

    int Tc=0,Tests=1;
//    cin>>Tests;
    while(Tc++<Tests)
    {


        ll l,r;
        cin>>l>>r;
        cout<<r-l+1;





    }///End TotalTests
}   ///End Main

Submission Info

Submission Time
Task A - Closed interval
User Dark_543
Language C++23 (GCC 15.2.0)
Score 100
Code Size 342 Byte
Status AC
Exec Time 1 ms
Memory 3620 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
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_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3620 KiB
00_sample_01.txt AC 1 ms 3592 KiB
00_sample_02.txt AC 1 ms 3488 KiB
01_handmade_00.txt AC 1 ms 3464 KiB
01_handmade_01.txt AC 1 ms 3456 KiB
01_handmade_02.txt AC 1 ms 3536 KiB
01_handmade_03.txt AC 1 ms 3400 KiB
01_handmade_04.txt AC 1 ms 3536 KiB
01_handmade_05.txt AC 1 ms 3580 KiB
01_handmade_06.txt AC 1 ms 3464 KiB