結果

問題 No.2415 偶数判定!Nafmoくん
ユーザー ryota2357ryota2357
提出日時 2023-07-11 13:11:39
言語 C++17(clang)
(17.0.6 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 529 bytes
コンパイル時間 2,005 ms
コンパイル使用メモリ 82,520 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-10-11 04:21:47
合計ジャッジ時間 6,553 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,352 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cassert>
#include <string>
using namespace std;
using ull = unsigned long long;

void assert_binary(string& s) {
    for (auto c : s) {
        assert(c == '0' || c == '1');
    }
    assert(1 <= s.length() && s.length() <= 64);
}

int main() {
    string a, b;
    cin >> a >> b;
    assert_binary(a);
    assert_binary(b);
    ull aa = stoull(a);
    ull bb = stoull(b);
    if (aa % 2 && bb % 2) {
        cout << "Odd" << endl;
    } else {
        cout << "Even" << endl;
    }
    return 0;
}
0