题解列表

筛选

简单代码易理解

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char a; int b; float c; double d; scanf("%c %d %f %lf",……

只会用for循环

摘要:import java.util.Scanner;public class Main1179 {  public static void main(String[] args) {    Scanne……

枚举 石头剪刀布

摘要:````` import java.util.*; enum Game{ ROCK,PAPER,SCISSORS; public static Game getHand(i……

自定义函数之字符串反转

摘要:解题思路:先把字符串存入一个数组,再将字符串拆分存放在另一个数组然后倒叙输出即可。注意事项:参考代码:#include<stdio.h>int main(){     int i,x;    char……

简单清晰代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%-8d%-8d……

简单字符串

摘要:解题思路:先将每个字符串遍历,将字符串作为函数参数,在函数中遍历每个字符,判断该字符与后一个字符是否相等,是则统计个数。注意事项:每次遍历都要将count置为1(当与后一个字符不等时)参考代码:def……