题解列表

筛选

蟠桃记-题解(C++代码)

#includeusingnamespacestd;intf(intm){if(m==1)return1;else{return(2*f(m-1)+2);}}intmain(){inta;while(cin>>a){cout

[STL训练]Ignatius and the Princess IV -题解(C++代码)

1.解题思路:设置geshu函数统计每个数字的个数,符合要求输出2.参考代码:```cpp/*这个整数将至少出现(N+1)/2次,如果你没有找到正确的整数,我将杀死王后1.第一行随机输出一个整数n,第二行输出对应的n个整数,*/#includeusingnamespacestd;/*解题思路:1.*/