結果

問題 No.2415 偶数判定!Nafmoくん
ユーザー ryota2357
提出日時 2023-07-11 13:11:39
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 529 bytes
コンパイル時間 7,172 ms
コンパイル使用メモリ 119,040 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-13 03:43:32
合計ジャッジ時間 4,477 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 RE * 20
権限があれば一括ダウンロードができます

ソースコード

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