結果
問題 | No.2415 偶数判定!Nafmoくん |
ユーザー |
![]() |
提出日時 | 2023-08-12 13:43:57 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 274 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-19 16:02:20 |
合計ジャッジ時間 | 1,131 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 |
ソースコード
#include<stdio.h>#include<string.h>int main(void){int scan;//scanf警告用char a[100],b[100];int c,alen,blen;scan=scanf("%s",a);scan=scanf("%s",b);alen=strlen(a);blen=strlen(b);if(a[alen-1]=='1' && b[blen-1]=='1')puts("Odd");else puts("Even");return 0;}