結果
問題 | No.2415 偶数判定!Nafmoくん |
ユーザー |
|
提出日時 | 2023-08-12 17:40:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 650 bytes |
コンパイル時間 | 2,180 ms |
コンパイル使用メモリ | 193,984 KB |
最終ジャッジ日時 | 2025-02-16 07:24:32 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;template<class T>using V = std::vector<T>;#define REP(i, n) for (ll i = (ll)0; i < (ll)(n); i++)#define REPS(i, s, n) for (ll i = (ll)(s); i < (ll)(n); i++)#define RREP(i, n) for (ll i = (ll)(n); i > (ll)0; i--)#define RREPS(i, s, n) for (ll i = (ll)(n); i > (ll)(s); i--)#define ALL(c) std::begin((c)), std::end((c))struct io {io() { cin.tie(0)->sync_with_stdio(0); }} caller;int main() {string a, b;cin >> a >> b;ll a10 = stoull(a, nullptr, 2), b10 = stoull(b, nullptr, 2);cout << (a10 % 2 && b10 % 2 ? "Odd" : "Even") << endl;return 0;}