题解 | 奇偶统计
奇偶统计
https://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
#include <stdio.h>
int main() {
int a, b;
scanf("%d", &a);
printf("%d %d",a/2+(a%2),a/2);
return 0;
}
奇偶统计
https://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
#include <stdio.h>
int main() {
int a, b;
scanf("%d", &a);
printf("%d %d",a/2+(a%2),a/2);
return 0;
}
相关推荐