結果
問題 |
No.2061 XOR Sort
|
ユーザー |
![]() |
提出日時 | 2022-08-26 22:33:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 325 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 31,744 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 23:11:28 |
合計ジャッジ時間 | 1,856 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 13 |
ソースコード
#include <stdio.h> #define MOD 998244353 int count[110]; int main() { int a; scanf("%d",&a); for(int i=1;i<=a;i++) { int b; scanf("%d",&b); for(int j=0;j<=30;j++) { count[j] += b%2; b/=2; } } long long int ans = 1; for(int j=0;j<=30;j++) if(0<count[j]&&count[j]<a) ans*=2; printf("%lld",ans%MOD); }