結果
問題 |
No.3046 White Tiger vs Monster
|
ユーザー |
|
提出日時 | 2025-03-21 01:20:13 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 385 bytes |
コンパイル時間 | 3,680 ms |
コンパイル使用メモリ | 277,832 KB |
実行使用メモリ | 7,396 KB |
最終ジャッジ日時 | 2025-03-22 22:30:53 |
合計ジャッジ時間 | 12,033 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 70 WA * 10 |
ソースコード
#include<bits/stdc++.h> using namespace std; typedef unsigned long long ull; int main(){ int n; ull a[200000],b; cin>>n>>b; for(int i=0;i<n;i++) cin>>a[i]; int d=bit_width(b)-1; vector<ull>ltd,eqd; for(int i=0;i<n;i++){ int tmp=bit_width(a[i])-1; if(tmp<d) ltd.push_back(a[i]); if(tmp==d) eqd.push_back(a[i]); } cout<<ltd.size()+1<<endl; }