Submission #9243751


Source Code Expand

Copy
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <numeric>
#include <unordered_map>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <memory>
#include <iomanip>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
constexpr long long MOD = 1e9 + 7;
constexpr long long MAX = 1000000;

//long long MOD = 998244353;
constexpr ll INF = 1e17;
constexpr double PI = 3.141592653589793;



int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);

    int a, b;
    cin >> a >> b;

    int ans = 1;
    if (a == ans || b == ans) {
        ans = 2;
    }
    if (a == ans || b == ans) {
        ans = 3;
    }

    cout << ans << "\n";

    return 0;
}

Submission Info

Submission Time
Task A - Round One
User mmatthew_43
Language C++14 (GCC 5.4.1)
Score 100
Code Size 799 Byte
Status
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
Subtask1 100 / 100 sample_01.txt, sample_02.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt
Case Name Status Exec Time Memory
sample_01.txt 1 ms 256 KB
sample_02.txt 1 ms 256 KB
sub1_01.txt 1 ms 256 KB
sub1_02.txt 1 ms 256 KB
sub1_03.txt 1 ms 256 KB
sub1_04.txt 1 ms 256 KB