Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
150358 Guotongzhou 二进制半整数 C++ 解答错误 0 4 MS 272 KB 408 2024-06-02 21:04:11

Tests(0/5):


#include <iostream> #include <set> using namespace std; typedef unsigned long long ull; set <ull> book; void add() { for(int i = 0; i <= 31; i++) for(int j = 0; j <= 31; j++) book.insert((1 << i) + (1 << j)); return ; } int main() { add(); int t; ull n; cin >> t; while(t--) { cin >> n; if(book.count(n) != 0) cout << "yes" << endl; else cout << "no"; } return 0; }


测评信息: