Submission #57935899


Source Code Expand

///In the name of ALLAH, The Most Gracious and The Most Merciful
///Praise be to ALLAH

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

const int sz = 2e5 + 10;
int ar[sz];

using ll = long long;

#define el "\n"
#define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define testCase int __; cin >> __; while(__--)
#define fraction() cout.unsetf(ios::floatfield); cout.precision(10); cout.setf(ios::fixed,ios::floatfield);

void solve()
{
    int a, b; cin >> a >> b;
    if(a == b) cout << 1 << el;
    else
    {
        if( ( a + b ) % 2 == 0 ) cout << 3 << el;
        else cout << 2 << el;
    }
}
int main()
{
    optimize();
    
    //testCase
        solve();

    return 0;
}

Submission Info

Submission Time
Task A - 369
User InFi4D_0
Language C++ 20 (gcc 12.2)
Score 100
Code Size 735 Byte
Status AC
Exec Time 1 ms
Memory 3636 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_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3392 KiB
00_sample_01.txt AC 1 ms 3520 KiB
00_sample_02.txt AC 1 ms 3468 KiB
01_random_00.txt AC 1 ms 3468 KiB
01_random_01.txt AC 1 ms 3420 KiB
01_random_02.txt AC 1 ms 3636 KiB
01_random_03.txt AC 1 ms 3420 KiB
01_random_04.txt AC 1 ms 3444 KiB
02_handmade_00.txt AC 1 ms 3580 KiB
02_handmade_01.txt AC 1 ms 3592 KiB
02_handmade_02.txt AC 1 ms 3532 KiB
02_handmade_03.txt AC 1 ms 3520 KiB