Submission #19723597


Source Code Expand

Copy
#include <iostream>
using namespace std;
int main() {
    int a,b;
    cin>>a>>b;
    if(a>b)
        swap(a,b);
    if(b-a<3)
        cout<<"Yes";
    else
        cout<<"No";
    return 0;
}

Submission Info

Submission Time
Task A - Three-Point Shot
User vjudge3
Language C++ (GCC 9.2.1)
Score 100
Code Size 193 Byte
Status AC
Exec Time 9 ms
Memory 3572 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 18
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All close_00.txt, close_01.txt, close_02.txt, close_03.txt, close_04.txt, close_05.txt, handmade_00.txt, handmade_01.txt, handmade_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
close_00.txt AC 9 ms 3428 KB
close_01.txt AC 2 ms 3424 KB
close_02.txt AC 3 ms 3372 KB
close_03.txt AC 2 ms 3424 KB
close_04.txt AC 2 ms 3428 KB
close_05.txt AC 2 ms 3428 KB
handmade_00.txt AC 2 ms 3532 KB
handmade_01.txt AC 2 ms 3424 KB
handmade_02.txt AC 3 ms 3572 KB
random_00.txt AC 2 ms 3376 KB
random_01.txt AC 2 ms 3432 KB
random_02.txt AC 2 ms 3424 KB
random_03.txt AC 4 ms 3428 KB
random_04.txt AC 2 ms 3568 KB
random_05.txt AC 5 ms 3544 KB
sample_01.txt AC 2 ms 3496 KB
sample_02.txt AC 4 ms 3572 KB
sample_03.txt AC 5 ms 3500 KB