Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <bits/stdc++.h>using namespace std;typedef double db;typedef long long ll;typedef long double ld;typedef pair<int,int> pa;typedef unsigned int uint;typedef unsigned long long ull;#define w1 first#define ls (x<<1)#define w2 second#define rs (x<<1|1)#define mp make_pair#define pb push_back#define mid ((l+r)>>1)#define SZ(x) (int((x).size()))#define rep(i,a,b) for(int (i)=(a);(i)<=(b);(i)++)#define rep2(i,a,b) for(int (i)=(a);(i)<(b);(i)++)#define per(i,a,b) for(int (i)=(a);(i)>=(b);(i)--)#define Rep(p,x) for(int (p)=head[(x)];(p);(p)=nxt[(p)])#define Rep2(p,x) for(int (p)=cur[(x)];(p);(p)=nxt[(p)])template<class T>void read(T&num){num=0;T f=1;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}while(ch>='0'&&ch<='9')num=num*10+ch-'0',ch=getchar();num*=f;}const int maxn=1e5+5,mod=998244353;int n,one,half,ans;int a[maxn],cnt[31];int main(){