Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
74281 jdf25_wangchs 乘方计算 C++ 编译错误 0 MS 0 KB 324 2025-11-24 19:54:49

Tests(0/0):


#include <iostream> #include <cmath> using namespace std; int main() { int a, n; cin >> a >> n; if (a == 0) { cout << 0 << endl; return 0; } if (a == 1) { cout << 1 << endl; return 0; } if (a == -1) { cout << (n % 2 == 0 ? 1 : -1) <<


测评信息: