結果

問題 No.2415 偶数判定!Nafmoくん
ユーザー umezoumezo
提出日時 2023-08-12 13:32:53
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 2,063 ms
コンパイル使用メモリ 199,604 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-19 15:29:44
合計ジャッジ時間 2,938 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
 
#include<bits/stdc++.h>
using namespace std;
 
int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  
  string a,b;
  cin>>a>>b;
  int n=a.size(),m=b.size();
  if(a[n-1]=='1' && b[m-1]=='1') cout<<"Odd"<<endl;
  else cout<<"Even"<<endl;
  
  
    
  return 0;
}
0