結果

問題 No.2415 偶数判定!Nafmoくん
ユーザー tnakao0123
提出日時 2023-08-21 14:41:10
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 470 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 41,472 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-15 03:13:39
合計ジャッジ時間 1,213 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

/* -*- coding: utf-8 -*-
 *
 * 2415.cc:  No.2415 偶数判定!Nafmoくん - yukicoder
 */

#include<cstdio>
#include<cstring>
#include<algorithm>
 
using namespace std;

/* constant */

/* typedef */

/* global variables */

char sa[128], sb[128];

/* subroutines */

/* main */

int main() {
  scanf("%s%s", sa, sb);
  int la = strlen(sa), lb = strlen(sb);
  int a = sa[la - 1] - '0', b = sb[lb - 1] - '0';

  if (a & b) puts("Odd");
  else puts("Even");
  return 0;
}
0