Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166693 | B班 李文乐 | 整数幂 | C++ | 解答错误 | 0 | 5 MS | 248 KB | 273 | 2024-08-19 15:13:15 |
#include<iostream> int main(){ long long n, s, i; std::cin >> s; for(i = 0; i < s; i++){ std::cin >> n; bool ans = n&1==0 ? 0:1; if (ans) {std::cout << "Yes" << std::endl;} else {std::cout << "No" << std::endl;} } return 0; }