80pts求助!!!
查看原帖
80pts求助!!!
1251905
cao_20115楼主2024/2/23 21:16
#include <cstdio>

using namespace std;
long long y0, t;
int main() {
    scanf("%d %d", &y0, &t);
    if (t == 0) {
        printf("NO\nYES");
    } else {
    if (y0 < 0 && t % 2 != 0)printf("YES\n");
    else printf("NO\n");
    
    if (y0 % 2 != 0) printf("YES");
    else printf("NO");
    }
    return 0;
}
2024/2/23 21:16
加载中...