康娜的魔法

#include<bits/stdc++.h>

using namespace std;
long long p[5];
int main()
{
while(cin>>p[0]>>p[1]>>p[2])
{
sort(p,p+3);
if((p[1]-p[0])%2==0)
{
if(p[1]==0) puts("QAQ");
else printf("%lld\n",p[1]);
}
else
{
if(p[2]==0) puts("QAQ");
else printf("%lld\n",p[2]);
}
}
}

相关文章:

  • 2022-02-14
  • 2021-06-22
  • 2021-12-07
  • 2022-12-23
  • 2021-08-12
  • 2021-10-22
猜你喜欢
  • 2021-11-13
  • 2021-05-20
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-01-29
  • 2021-08-28
相关资源
相似解决方案