比赛 | CSP2022普及组 | 评测结果 | C |
---|---|---|---|
题目名称 | 乘方 | 最终得分 | 0 |
用户昵称 | jiaoyize | 运行时间 | 0.000 s |
代码语言 | C++ | 内存使用 | 0.00 MiB |
提交时间 | 2022-10-29 14:51:32 | ||
#intclude<iostream> #intclude<cstdio> #intclude<cmath> using namespace std; int main() { freopen("csp2022pj_pow.in",'r',stdin) freopen("csp2022pj_pow.out",'w',stdout) int a,b; cin>>a>>b; if(a^b>10^9){ cout<<-1; } else { cout<<a^b; } }