题解 | #奇偶统计#
奇偶统计
https://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
#include <stdio.h>
int main()
{
int N;
scanf("%d",&N);
if(N%2==0)
{
printf("%d %d\n",N/2,N/2);
}
else
{
printf("%d %d",(N/2)+1,N/2);
}
return 0;
}
查看14道真题和解析