题解列表
妹子杀手的故事-题解(C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
int a,b;
while(cin>……
使用pow()函数求幂次方
摘要:解题思路:pow() 方法 double pow (double x,double y);参数说明:x:双精度数。底数y:双精度数。指数返回值:x 的 y 次方的值例如: pow( 3 , 4 ) ……
C++ 数据结构 字符串连接
摘要: #include
#include
using namespace std;
int main()
{
string a,b;
string c[3];
f……
思路很简单,代码很友好(注释),也很短
摘要:解题思路:1.如果是*直接输出,else就考虑相邻元素,这里的相邻元素是核心,可以先考虑同一行和同一列的相邻元素(曼哈顿距离)abs(i - x) + abs(j - y) < 2 // 上下左右的相……
C++ 猴子偷逃问题
摘要: //整体思路:反向推理
#include
using namespace std;
int main()
{
int N;int s = 1;//表示桃子的数量 ……
C语言训练-"水仙花数"问题1
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,i; bool p; cin>>……