提出 #59221978


ソースコード 拡げる

///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 l, r; cin >> l >> r;
    if(l == 0 && r == 1) cout << "No" << el;
    else if(l == 1 && r == 0) cout << "Yes" << el;
    else if((l == 0 && r == 0) || (l == 1 && r == 1)) cout << "Invalid" << el;
}
int main()
{
    optimize();
    
    //testCase
        solve();

    return 0;
}

提出情報

提出日時
問題 A - Raise Both Hands
ユーザ InFi4D_0
言語 C++ 20 (gcc 12.2)
得点 100
コード長 774 Byte
結果 AC
実行時間 1 ms
メモリ 3560 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 4
セット名 テストケース
Sample sample00.txt, sample01.txt
All sample00.txt, sample01.txt, testcase00.txt, testcase01.txt
ケース名 結果 実行時間 メモリ
sample00.txt AC 1 ms 3560 KiB
sample01.txt AC 1 ms 3412 KiB
testcase00.txt AC 1 ms 3496 KiB
testcase01.txt AC 1 ms 3488 KiB