【Codeforces div3-498】题解
Codeforces div3-498题解
A. Adjacent Replacements
对于这道题目就比较简单了,如果该数N为奇数,那么经过变换之后不变,如果该数为偶数则变为N - 1
#include <stdio.h>
const int maxn=1005;
int a[maxn];
int n;
void work()
{
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%d",&a[i]);





