题解 | #奇偶统计#
奇偶统计
https://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
#include <stdio.h>
int main()
{
int n = 0;
scanf("%d",&n);
int ret = n % 2 == 0? 0 : 1;
printf("%d %d\n",n/2+ret,n/2);
return 0;
}
奇偶统计
https://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
#include <stdio.h>
int main()
{
int n = 0;
scanf("%d",&n);
int ret = n % 2 == 0? 0 : 1;
printf("%d %d\n",n/2+ret,n/2);
return 0;
}
相关推荐
SHC2:春招先狠狠投递,然后你看看能不能申请香港新加坡的一年制master,花不了多少钱,或者现在赶紧去刷一段实习。HR专业考研没必要