题解 1200: 回文串

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

回文串 (Java代码)

摘要:解题思路:1.将字符串变成字符数组     2.外面写一个if else来判断字符数组的个数,偶数进入if 奇数进入else      3.两个里面只要满足前后对应位置的字符相同,num++。否则输出……

回文串 (C语言代码)

摘要:#include<stdio.h> #include<string.h> int main(){     char str[255];     while(gets(str)){      ……

回文串 (Java代码)

摘要:解题思路:分割左右两边 注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(Strin……

回文串 (Java代码)

摘要:Scanner sc=new Scanner(System.in); String ia=sc.nextLine(); String ib=new StringBuffer(ia).rev……

回文串-题解(C语言代码)

摘要:```c #include #include #define N 256 // 1、先将数组逆序一个个赋值给一个新的数组 // 2、再拿新的数组和原来的数组进行比较,相同则输出'Y',否则输……

回文串 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.*;public class 回文 { public static char huiwen(String a) {  int n=0; ……

回文串-题解(C++代码)

摘要:```cpp 开头结尾一起判断 #include #include using namespace std; int main(int agrc, char const *arg……