原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=3785 分析:简单题,排序输出即可。 代码: #include<stdio.h> #include<algorithm> using namespace std; int a[100000+5]; int main() { int n,m; while(~scanf("%d%d",
It’s Saturday today, what day is it after 1^1 + 2^2 + 3^3 + … + N^N days? Input There are multiple test cases. The first line of input contains an integer T indicating the number of test cases.