讨论 / 评测说我超时???
believe? 2017-08-20 01:40:33
点我顶贴 收藏 删除
#include <iostream>

#include <cstdio>

using namespace std;

int n,k;

int main()

{

int t;

scanf("%d",&t);

while(t--){

scanf("%d%d",&n,&k);

if(n&k==k) cout<<1<<endl;

else cout<<0<<endl;

}

return 0;

}

//这也能超时???仿佛在逗我

#1 llqxs@2017-09-06 00:37:52
回复 删除
老哥,你知道cin和cout有多慢吗

#2 13475801359@2020-04-02 19:25:17
回复 删除
cin和cout与缓冲区有关,这种测试数据很多的最好用scanf和printf
查看更多回复
提交回复