結果
問題 | No.2415 偶数判定!Nafmoくん |
ユーザー |
![]() |
提出日時 | 2023-08-12 13:38:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 704 bytes |
コンパイル時間 | 1,640 ms |
コンパイル使用メモリ | 170,152 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-19 15:46:05 |
合計ジャッジ時間 | 2,550 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/modint>using namespace std;using namespace atcoder;#define overload4(_1, _2, _3, _4, name, ...) name#define rep1(n) for(int i = 0; i < (int)(n); ++i)#define rep2(i, n) for(int i = 0; i < (int)(n); ++i)#define rep3(i, a, b) for(int i = (a); i < (int)(b); ++i)#define rep4(i, a, b, c) for(int i = (a); i < (int)(b); i += (c))#define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)using ll = long long;using ull = unsigned long long;using ld = long double;using u16 = uint16_t;int main(){bitset<64> a;bitset<64> b;cin >> a >> b;ull ans = a.to_ullong()*b.to_ullong();cout << (ans % 2ull == 1 ? "Odd" : "Even") << endl;}