1 条题解

  • 1
    @ 2025-12-4 20:10:53
    #include <stdio.h>
    #include <string.h>
    char a[100000005];
    int main(){
    	scanf ("%s",a);
    	long long b=strlen (a);
    	if (a[b-1]%2==0){
    		printf ("even number");
    	}
    	else {
    		printf ("odd number");
    	}
    	return 0;
    }
    
    • 1

    信息

    ID
    287
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    递交数
    368
    已通过
    72
    上传者