0分求助
查看原帖
0分求助
516867
SZnP楼主2022/7/3 07:54
#include<bits/stdc++.h>
using namespace std;
using namespace std;
int main()
{
    long long n,s;
    char x;
    scanf("%lld",&n);
    getchar();getchar();
    while (n>0)
    {
    	n--;
        while (((x=getchar())!=EOF)&&x!='\n') s=x;
        s-='0';
        if (s%2) printf("odd\n");
        else printf("even\n");
    }
    return 0;
}
2022/7/3 07:54
加载中...