比赛 20250520模拟测试 评测结果 AWWWWWWWWWWWWWWWWWWW
题目名称 幂次 最终得分 5
用户昵称 Tim 运行时间 0.055 s
代码语言 C++ 内存使用 3.83 MiB
提交时间 2025-05-20 16:17:07
显示代码纯文本
#include<bits/stdc++.h>
#define int long long
using namespace std;
const int N = 110;

int n, k;

signed main() {
	freopen("power.in", "r", stdin);
	freopen("power.out", "w", stdout);
	scanf("%lld%lld", &n, &k);
	int ans;
	if (k == 1)	ans = n;

	printf("%lld", ans);
	return 0;
}