题解列表

筛选

自定义函数之数字后移

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <malloc.h>int main(){ int n,m,*a=NULL,*b=NULL; scanf("%d",&……

爆破爆破 题解 1294: P1027

摘要:解题思路: 直接判四个方向,谁大加谁。注意事项:下标越界直接捕获异常跳,写那判断语句麻烦参考代码:import java.util.Scanner; /**  * @author fzy  ……

暴破 1209: 密码截获

摘要:解题思路: 直接从最长子串遍历到最短子串,第一个回文子串必为最长回文。参考代码:import java.util.Scanner; /**  * @author fzy  * @create 2……

有规律的数列求和

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int a=1,b=2,c,n,i=0;    float sum……

1042 [编程入门]电报加密

摘要:解题思路:注意事项:输入字符串时用Scanner的nextLine()方法,不然会漏掉空格。参考代码:package practise;import java.text.*;import java.u……