题解列表
思路很简单,代码很友好(注释),也很短
摘要:解题思路:1.如果是*直接输出,else就考虑相邻元素,这里的相邻元素是核心,可以先考虑同一行和同一列的相邻元素(曼哈顿距离)abs(i - x) + abs(j - y) < 2 // 上下左右的相……
C++ 数据结构 字符串连接
摘要: #include
#include
using namespace std;
int main()
{
string a,b;
string c[3];
f……
C语言思路简单,易懂!!!
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int a[10]; int min,min_i; ……
正常血压(标题太短啦)
摘要:参考代码:
```c
#include
int main()
{
int n;
scanf("%d",&n);
int a[n],b[n],k=0,max=0;
for(int……
自定义函数处理素数java
摘要: import java.util.Scanner;
public class Main {
public static void main(String[] args) {
S……
二维数组的转置java
摘要: import java.util.Scanner;
public class Main {
public static void main(String[] args) {
S……
使用pow()函数求幂次方
摘要:解题思路:pow() 方法 double pow (double x,double y);参数说明:x:双精度数。底数y:双精度数。指数返回值:x 的 y 次方的值例如: pow( 3 , 4 ) ……