結果
| 問題 |
No.206 数の積集合を求めるクエリ
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-05-13 02:19:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1,119 ms / 7,000 ms |
| コード長 | 166 bytes |
| コンパイル時間 | 1,470 ms |
| コンパイル使用メモリ | 158,684 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 14:12:44 |
| 合計ジャッジ時間 | 11,127 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<bits/stdc++.h>
| ^~~~~~
main.cpp:2:21: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | using namespace std;main(){int L,M,Q;bitset<1<<17>a,b;for(cin>>L>>M>>Q;cin>>Q,M;L?a[Q]=L--:b[Q]=M--);for(;Q--;b<<=1)cout<<(a&b).count()<<'\n';}
| ^~~~
ソースコード
#import<bits/stdc++.h>
using namespace std;main(){int L,M,Q;bitset<1<<17>a,b;for(cin>>L>>M>>Q;cin>>Q,M;L?a[Q]=L--:b[Q]=M--);for(;Q--;b<<=1)cout<<(a&b).count()<<'\n';}
hogeover30