結果
問題 | No.2415 偶数判定!Nafmoくん |
ユーザー |
|
提出日時 | 2023-09-15 22:57:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 598 ms |
コンパイル使用メモリ | 69,100 KB |
最終ジャッジ日時 | 2025-02-16 22:41:43 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 |
ソースコード
#include <iostream>#include <bitset>using namespace std;int main(void){string s, t;cin >> s >> t;bitset<70> a(s), b(t);unsigned long long c = a.to_ullong() * b.to_ullong();if (c%2 == 0) {cout << "Even" << endl;}else cout << "Odd" << endl;}